This is an automated email from the ASF dual-hosted git repository.
jshao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new d2dbd3dc7 [#4641] fix(web): improvement scroll bar on the catalog
detail page ellipsis display (#5271)
d2dbd3dc7 is described below
commit d2dbd3dc71545ea21fdf96e02831680578aed83c
Author: Qian Xia <[email protected]>
AuthorDate: Mon Oct 28 10:44:43 2024 +0800
[#4641] fix(web): improvement scroll bar on the catalog detail page
ellipsis display (#5271)
### What changes were proposed in this pull request?
improvement scroll bar on the catalog detail page ellipsis display

Fix: #4641
### Does this PR introduce _any_ user-facing change?
N/A
### How was this patch tested?
manually
---
web/web/src/components/DetailsDrawer.js | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/web/web/src/components/DetailsDrawer.js
b/web/web/src/components/DetailsDrawer.js
index c470af43c..858e2d5ab 100644
--- a/web/web/src/components/DetailsDrawer.js
+++ b/web/web/src/components/DetailsDrawer.js
@@ -205,16 +205,19 @@ const DetailsDrawer = props => {
{properties.map((item, index) => {
return (
<TableRow key={index}
data-refer={`details-props-index-${index}`}>
- <TableCell className={'twc-py-[0.7rem]'}
data-refer={`details-props-key-${item.key}`}>
+ <TableCell
+ className={'twc-py-[0.7rem] twc-truncate
twc-max-w-[134px]'}
+ data-refer={`details-props-key-${item.key}`}
+ >
<Tooltip
title={<span
data-refer={`tip-details-props-key-${item.key}`}>{item.key}</span>}
placement='bottom'
>
- {item.key.length > 22 ? `${item.key.substring(0,
22)}...` : item.key}
+ {item.key}
</Tooltip>
</TableCell>
<TableCell
- className={'twc-py-[0.7rem]'}
+ className={'twc-py-[0.7rem] twc-truncate
twc-max-w-[134px]'}
data-refer={`details-props-value-${item.value}`}
data-prev-refer={`details-props-key-${item.key}`}
>
@@ -224,7 +227,7 @@ const DetailsDrawer = props => {
title={<span
data-prev-refer={`tip-details-props-key-${item.key}`}>{item.value}</span>}
placement='bottom'
>
- {item.value.length > 22 ?
`${item.value.substring(0, 22)}...` : item.value}
+ {item.value}
</Tooltip>
)}
</TableCell>