diff --git a/ui/src/pages/Admin/Answers/index.tsx b/ui/src/pages/Admin/Answers/index.tsx index 091fe2db8..ad66e3d5c 100644 --- a/ui/src/pages/Admin/Answers/index.tsx +++ b/ui/src/pages/Admin/Answers/index.tsx @@ -96,7 +96,7 @@ const Answers: FC = () => { - + @@ -127,9 +127,7 @@ const Answers: FC = () => { className="ms-2 text-success" /> )} -
+
{escapeRemove(li.description)}
diff --git a/ui/src/pages/Admin/Questions/index.tsx b/ui/src/pages/Admin/Questions/index.tsx index 906885b5a..b2f4b38c1 100644 --- a/ui/src/pages/Admin/Questions/index.tsx +++ b/ui/src/pages/Admin/Questions/index.tsx @@ -94,7 +94,7 @@ const Questions: FC = () => {
{t('post')}{t('post')} {t('votes')} {t('created')} {t('status')}
- + diff --git a/ui/src/pages/Admin/index.scss b/ui/src/pages/Admin/index.scss index 5a78d5f32..27a9af016 100644 --- a/ui/src/pages/Admin/index.scss +++ b/ui/src/pages/Admin/index.scss @@ -22,8 +22,20 @@ padding-bottom: 1.5rem; } -.table { - .post-column { - min-width: 15rem; +.min-w-15 { + min-width: 15rem; +} + +.max-w-30 { + max-width: 30rem; +} + +@media screen and (max-width: 768px) { + .max-w-30 { + max-width: 15rem; } } + +.table tr th { + white-space: nowrap; +} diff --git a/ui/src/pages/Timeline/components/Item/index.tsx b/ui/src/pages/Timeline/components/Item/index.tsx index 5c26732a0..e327ed320 100644 --- a/ui/src/pages/Timeline/components/Item/index.tsx +++ b/ui/src/pages/Timeline/components/Item/index.tsx @@ -70,7 +70,7 @@ const Index: FC = ({ data, isAdmin, objectInfo, revisionList }) => {
{data.cancelled_at > 0 && } -
- {/* diff --git a/ui/src/pages/Timeline/index.scss b/ui/src/pages/Timeline/index.scss new file mode 100644 index 000000000..5748d0532 --- /dev/null +++ b/ui/src/pages/Timeline/index.scss @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +.min-w-15 { + min-width: 15rem; +} + +.max-w-30 { + max-width: 30rem; +} + +@media screen and (max-width: 768px) { + .max-w-30 { + max-width: 15rem; + } +} + +.table tr th { + white-space: nowrap; +} diff --git a/ui/src/pages/Timeline/index.tsx b/ui/src/pages/Timeline/index.tsx index 0a7816faf..66c7b03c4 100644 --- a/ui/src/pages/Timeline/index.tsx +++ b/ui/src/pages/Timeline/index.tsx @@ -31,6 +31,8 @@ import * as Type from '@/common/interface'; import HistoryItem from './components/Item'; +import './index.scss'; + const Index: FC = () => { const { t } = useTranslation('translation', { keyPrefix: 'timeline' }); const { qid = '', aid = '', tid = '' } = useParams(); @@ -116,13 +118,13 @@ const Index: FC = () => { onChange={(e) => handleSwitch(e.target.checked)} /> )} -
{t('post')}{t('post')} {t('votes')} {t('answers')} {t('created')} + {(data.activity_type === 'rollback' || data.activity_type === 'edited' || data.activity_type === 'asked' || @@ -139,7 +139,6 @@ const Index: FC = ({ data, isAdmin, objectInfo, revisionList }) => {
*/}
+
- +
{t('datetime')} {t('type')} {t('by')}{t('comment')}{t('comment')}