From c5de35500b2f8a014fdb7bd8086f47d9cdb8800b Mon Sep 17 00:00:00 2001 From: ttang Date: Mon, 25 Sep 2023 14:19:24 +0800 Subject: [PATCH] feat: model max width --- packages/client/scan/src/container/DappsList.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/client/scan/src/container/DappsList.tsx b/packages/client/scan/src/container/DappsList.tsx index f0426f5e..d0a88dee 100644 --- a/packages/client/scan/src/container/DappsList.tsx +++ b/packages/client/scan/src/container/DappsList.tsx @@ -108,6 +108,8 @@ const TableContainer = styled.table<{ isMobile: boolean }>` } > :nth-child(3) { width: calc(100% - 650px); + max-width: 600px; + overflow: hidden; } } @@ -214,7 +216,12 @@ const TableContainer = styled.table<{ isMobile: boolean }>` display: flex; align-items: center; gap: 10px; + max-width: 550px; + overflow: hidden; + text-overflow: ellipsis; overflow: hidden; + padding-right: 5px; + white-space: nowrap; } `