Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

feat: allow tables to be scrolled horizontally with ease in Admin

hgaold1022d5986e0
diff --git a/ui/src/pages/Admin/Questions/index.tsx b/ui/src/pages/Admin/Questions/index.tsx
index 716120d3..906885b5 100644
--- a/ui/src/pages/Admin/Questions/index.tsx
+++ b/ui/src/pages/Admin/Questions/index.tsx
@@ -91,10 +91,10 @@ const Questions: FC = () => {
style={{ width: '12.25rem' }}
/>
</div>
- <Table>
+ <Table responsive>
<thead>
<tr>
- <th>{t('post')}</th>
+ <th className="post-column">{t('post')}</th>
<th style={{ width: '8%' }}>{t('votes')}</th>
<th style={{ width: '8%' }}>{t('answers')}</th>
<th style={{ width: '15%' }}>{t('created')}</th>
diff --git a/ui/src/pages/Admin/index.scss b/ui/src/pages/Admin/index.scss
index c723b8ac..5a78d5f3 100644
--- a/ui/src/pages/Admin/index.scss
+++ b/ui/src/pages/Admin/index.scss
@@ -21,3 +21,9 @@
padding-top: 1.5rem;
padding-bottom: 1.5rem;
}
+
+.table {
+ .post-column {
+ min-width: 15rem;
+ }
+}