World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[3286] Improvement(ui): row tooltip displays comment (#3882)
Junshen Tao02835ffbd2d6
diff --git a/web/src/app/metalakes/TableBody.js b/web/src/app/metalakes/TableBody.jsindex 0a1d7333be..1a5ba76eb9 100644--- a/web/src/app/metalakes/TableBody.js+++ b/web/src/app/metalakes/TableBody.js@@ -94,7 +94,7 @@ const TableBody = props => {return (<Box sx={{ display: 'flex', alignItems: 'center' }}>- <Tooltip title={name} placement='right'>+ <Tooltip title={row.comment} placement='right'><TypographynoWrapcomponent={Link}diff --git a/web/src/app/metalakes/metalake/rightContent/tabsContent/tableView/TableView.js b/web/src/app/metalakes/metalake/rightContent/tabsContent/tableView/TableView.jsindex 5930138c1f..6c447fba28 100644--- a/web/src/app/metalakes/metalake/rightContent/tabsContent/tableView/TableView.js+++ b/web/src/app/metalakes/metalake/rightContent/tabsContent/tableView/TableView.js@@ -199,24 +199,26 @@ const TableView = () => {return (<Box sx={{ display: 'flex', alignItems: 'center' }}>- <Typography- noWrap- {...(path- ? {- component: Link,- href: path- }- : {})}- onClick={() => handleClickUrl(path)}- sx={{- fontWeight: 400,- color: 'primary.main',- textDecoration: 'none',- '&:hover': { color: 'primary.main', textDecoration: 'underline' }- }}- >- {name}- </Typography>+ <Tooltip title={row.comment} placement='right'>+ <Typography+ noWrap+ {...(path+ ? {+ component: Link,+ href: path+ }+ : {})}+ onClick={() => handleClickUrl(path)}+ sx={{+ fontWeight: 400,+ color: 'primary.main',+ textDecoration: 'none',+ '&:hover': { color: 'primary.main', textDecoration: 'underline' }+ }}+ >+ {name}+ </Typography>+ </Tooltip></Box>)}diff --git a/web/src/components/DetailsDrawer.js b/web/src/components/DetailsDrawer.jsindex 6a6e9a46b3..0dbba7fff9 100644--- a/web/src/components/DetailsDrawer.js+++ b/web/src/components/DetailsDrawer.js@@ -98,21 +98,17 @@ const DetailsDrawer = props => {</Box><Box sx={{ p: 4 }}><Grid item xs={12} sx={{ mb: [0, 5] }}>- <Tooltip title={drawerData.name} placement='bottom-start'>- <Typography- variant='subtitle1'- className={- 'twc-py-2 twc-font-semibold twc-text-[1.2rem] twc-w-full twc-overflow-hidden twc-text-ellipsis'- }- sx={{- borderBottom: theme => `1px solid ${theme.palette.divider}`,- whiteSpace: 'nowrap'- }}- data-refer='details-title'- >- {drawerData.name}- </Typography>- </Tooltip>+ <Typography+ variant='subtitle1'+ className={'twc-py-2 twc-font-semibold twc-text-[1.2rem] twc-w-full twc-overflow-hidden twc-text-ellipsis'}+ sx={{+ borderBottom: theme => `1px solid ${theme.palette.divider}`,+ whiteSpace: 'nowrap'+ }}+ data-refer='details-title'+ >+ {drawerData.name}+ </Typography></Grid>{isMetalakePage ? (