From 18425b1f44f0e77ba1370e78d77e1efdea9622b2 Mon Sep 17 00:00:00 2001 From: wood Date: Thu, 9 Nov 2023 06:15:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=BD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/LogsTable.js | 4 ++-- web/src/custom.css | 9 +++++++++ web/src/index.css | 12 +++++++++++- 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 web/src/custom.css diff --git a/web/src/components/LogsTable.js b/web/src/components/LogsTable.js index f43e994e..a485f86d 100644 --- a/web/src/components/LogsTable.js +++ b/web/src/components/LogsTable.js @@ -376,7 +376,7 @@ const LogsTable = () => { onClick={() => { sortLog('model_name'); }} - width={2} + width={3} > 模型 @@ -412,7 +412,7 @@ const LogsTable = () => { onClick={() => { sortLog('content'); }} - width={isAdminUser ? 4 : 6} + width={isAdminUser ? 3 : 5} > 详情 diff --git a/web/src/custom.css b/web/src/custom.css new file mode 100644 index 00000000..d324727e --- /dev/null +++ b/web/src/custom.css @@ -0,0 +1,9 @@ +.custom-width .ui.container { + width: 100vw !important; + padding: 0 !important; + } + + .custom-width .ui.menu { + margin-bottom: 0 !important; + } + \ No newline at end of file diff --git a/web/src/index.css b/web/src/index.css index bc2bb7bf..c7020d59 100644 --- a/web/src/index.css +++ b/web/src/index.css @@ -207,4 +207,14 @@ code { .hide-on-mobile { display: none !important; } -} \ No newline at end of file +} +@media only screen and (min-width: 1600px){ +.main-content { + width: 1300px !important; +} +.ui.menu .ui.container { + width: 1608px !important; /* 或者你想要设置的宽度 */ + /* padding: 0 !important; */ + } +} +