This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
     new 9cecfe038f [fix](web ui) fix fe web ui (#14887)
9cecfe038f is described below

commit 9cecfe038f563c2803a8b7137d6b7e074d3f3cf9
Author: jiafeng.zhang <zhang...@gmail.com>
AuthorDate: Thu Dec 29 21:19:44 2022 +0800

    [fix](web ui) fix fe web ui (#14887)
---
 ui/src/components/table/index.less | 11 +++++++++++
 ui/src/components/table/index.tsx  |  2 +-
 ui/src/pages/system/index.tsx      |  1 +
 3 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/ui/src/components/table/index.less 
b/ui/src/components/table/index.less
index a417c7d0a2..49db6dbb64 100644
--- a/ui/src/components/table/index.less
+++ b/ui/src/components/table/index.less
@@ -33,3 +33,14 @@ under the License. */
         position: absolute;
     }
 }
+:table {
+    :global {
+      .ant-table-thead > tr > th {
+        background: #fff !important;
+        white-space: nowrap; 
+      }
+      .ant-table-tbody >tr> td {
+        white-space: nowrap; 
+      }
+    }
+  }
diff --git a/ui/src/components/table/index.tsx 
b/ui/src/components/table/index.tsx
index 5030b104be..94afff63c3 100644
--- a/ui/src/components/table/index.tsx
+++ b/ui/src/components/table/index.tsx
@@ -52,7 +52,7 @@ export default function SortFilterTable(props: any) {
             <Table
                 columns={localColumns}
                 dataSource={tableData}
-                scroll={{x:true}}
+                scroll={{ x: 'max-content' }}
                 size='small'
                 bordered
                 // onChange={onChange}
diff --git a/ui/src/pages/system/index.tsx b/ui/src/pages/system/index.tsx
index 35e0154012..ce96744a5b 100644
--- a/ui/src/pages/system/index.tsx
+++ b/ui/src/pages/system/index.tsx
@@ -80,6 +80,7 @@ export default function System(params: any) {
                 isSort={true}
                 isFilter={true}
                 isInner={true}
+                scroll={{ x: 'max-content' }}
                 path = 'System'
                 isSystem = {true}
                 allTableData={allTableData}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to