This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
The following commit(s) were added to refs/heads/dev by this push:
new ad951c8c fix: table responsive
ad951c8c is described below
commit ad951c8c494ca2937c56003a120c747767fa6ad6
Author: shuai <[email protected]>
AuthorDate: Fri May 24 14:36:10 2024 +0800
fix: table responsive
---
ui/src/pages/Admin/Answers/components/Action/index.tsx | 2 +-
ui/src/pages/Admin/Answers/index.tsx | 2 +-
ui/src/pages/Admin/Plugins/Installed/index.tsx | 2 +-
ui/src/pages/Admin/Questions/components/Action/index.tsx | 2 +-
ui/src/pages/Admin/Questions/index.tsx | 2 +-
ui/src/pages/Admin/Users/components/Action/index.tsx | 2 +-
ui/src/pages/Admin/Users/index.tsx | 2 +-
ui/src/pages/Timeline/index.tsx | 2 +-
8 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/ui/src/pages/Admin/Answers/components/Action/index.tsx
b/ui/src/pages/Admin/Answers/components/Action/index.tsx
index c4308cd2..7dc3bb33 100644
--- a/ui/src/pages/Admin/Answers/components/Action/index.tsx
+++ b/ui/src/pages/Admin/Answers/components/Action/index.tsx
@@ -78,7 +78,7 @@ const AnswerActions = ({ itemData, curFilter, refreshList })
=> {
title={t('action', { keyPrefix: 'admin.answers' })}
/>
</Dropdown.Toggle>
- <Dropdown.Menu>
+ <Dropdown.Menu align="end">
{curFilter === 'deleted' ? (
<Dropdown.Item onClick={() => handleAction('undelete')}>
{t('undelete', { keyPrefix: 'btns' })}
diff --git a/ui/src/pages/Admin/Answers/index.tsx
b/ui/src/pages/Admin/Answers/index.tsx
index 42339263..6f9f627e 100644
--- a/ui/src/pages/Admin/Answers/index.tsx
+++ b/ui/src/pages/Admin/Answers/index.tsx
@@ -94,7 +94,7 @@ const Answers: FC = () => {
className="mt-3 mt-sm-0"
/>
</div>
- <Table responsive>
+ <Table responsive="md">
<thead>
<tr>
<th className="min-w-15">{t('post')}</th>
diff --git a/ui/src/pages/Admin/Plugins/Installed/index.tsx
b/ui/src/pages/Admin/Plugins/Installed/index.tsx
index f1ced442..e498e239 100644
--- a/ui/src/pages/Admin/Plugins/Installed/index.tsx
+++ b/ui/src/pages/Admin/Plugins/Installed/index.tsx
@@ -103,7 +103,7 @@ const Users: FC = () => {
/>
</Stack>
</div>
- <Table responsive>
+ <Table responsive="md">
<thead>
<tr>
<th className="min-w-15">{t('name')}</th>
diff --git a/ui/src/pages/Admin/Questions/components/Action/index.tsx
b/ui/src/pages/Admin/Questions/components/Action/index.tsx
index f5d2b41f..0dc1fefa 100644
--- a/ui/src/pages/Admin/Questions/components/Action/index.tsx
+++ b/ui/src/pages/Admin/Questions/components/Action/index.tsx
@@ -139,7 +139,7 @@ const AnswerActions = ({ itemData, refreshList, curFilter,
show, pin }) => {
title={t('action', { keyPrefix: 'admin.answers' })}
/>
</Dropdown.Toggle>
- <Dropdown.Menu>
+ <Dropdown.Menu align="end">
{curFilter === 'normal' && (
<Dropdown.Item onClick={() => handleAction('close')}>
{t('close', { keyPrefix: 'btns' })}
diff --git a/ui/src/pages/Admin/Questions/index.tsx
b/ui/src/pages/Admin/Questions/index.tsx
index 4a3c669a..ab33155e 100644
--- a/ui/src/pages/Admin/Questions/index.tsx
+++ b/ui/src/pages/Admin/Questions/index.tsx
@@ -92,7 +92,7 @@ const Questions: FC = () => {
className="mt-3 mt-sm-0"
/>
</div>
- <Table responsive>
+ <Table responsive="md">
<thead>
<tr>
<th className="min-w-15">{t('post')}</th>
diff --git a/ui/src/pages/Admin/Users/components/Action/index.tsx
b/ui/src/pages/Admin/Users/components/Action/index.tsx
index 0bb9a667..8c98b1c7 100644
--- a/ui/src/pages/Admin/Users/components/Action/index.tsx
+++ b/ui/src/pages/Admin/Users/components/Action/index.tsx
@@ -160,7 +160,7 @@ const UserOperation = ({
<Dropdown.Toggle variant="link" className="no-toggle p-0">
<Icon name="three-dots-vertical" title={t('action')} />
</Dropdown.Toggle>
- <Dropdown.Menu>
+ <Dropdown.Menu align="end">
{showActionPassword ? (
<Dropdown.Item onClick={() => handleAction('password')}>
{t('set_new_password')}
diff --git a/ui/src/pages/Admin/Users/index.tsx
b/ui/src/pages/Admin/Users/index.tsx
index c8f4fab4..cfabd20a 100644
--- a/ui/src/pages/Admin/Users/index.tsx
+++ b/ui/src/pages/Admin/Users/index.tsx
@@ -193,7 +193,7 @@ const Users: FC = () => {
className="mt-3 mt-sm-0"
/>
</div>
- <Table responsive>
+ <Table responsive="md">
<thead>
<tr>
<th>{t('name')}</th>
diff --git a/ui/src/pages/Timeline/index.tsx b/ui/src/pages/Timeline/index.tsx
index 66c7b03c..fb3f488e 100644
--- a/ui/src/pages/Timeline/index.tsx
+++ b/ui/src/pages/Timeline/index.tsx
@@ -118,7 +118,7 @@ const Index: FC = () => {
onChange={(e) => handleSwitch(e.target.checked)}
/>
)}
- <Table hover responsive>
+ <Table hover responsive="md">
<thead>
<tr>
<th style={{ width: '20%' }}>{t('datetime')}</th>