World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#3058] fix(web): fix value displaying and enhance the styles (#3102)
CHEYNE841c90254c3a
diff --git a/web/src/app/metalakes/metalake/rightContent/tabsContent/TabsContent.js b/web/src/app/metalakes/metalake/rightContent/tabsContent/TabsContent.jsindex bdea15e776..eb46897bf4 100644--- a/web/src/app/metalakes/metalake/rightContent/tabsContent/TabsContent.js+++ b/web/src/app/metalakes/metalake/rightContent/tabsContent/TabsContent.js@@ -13,6 +13,8 @@ import { styled, Box, Divider, List, ListItem, ListItemText, Stack, Tab, Typograimport Tooltip, { tooltipClasses } from '@mui/material/Tooltip'import { TabContext, TabList, TabPanel } from '@mui/lab'+import clsx from 'clsx'+import { useAppSelector } from '@/lib/hooks/useStore'import { useSearchParams } from 'next/navigation'@@ -165,15 +167,46 @@ const TabsContent = () => {<Box sx={{ p: 1.5, px: 4 }}>{item.items.map((it, idx) => {return (- <Typography- key={idx}- variant='caption'- color='white'- className={fonts.className}- sx={{ display: 'flex', flexDirection: 'column' }}- >- {item.type === 'sortOrders' ? it.text : it.fields.join('.')}- </Typography>+ <Fragment key={idx}>+ <Typography+ variant='caption'+ color='white'+ className={fonts.className}+ sx={{ display: 'flex', flexDirection: 'column' }}+ >+ {item.type === 'sortOrders'+ ? it.text+ : it.fields.map((v, vi) => {+ return (+ <Fragment key={vi}>+ <Box component={'span'} sx={{}}>+ {Array.isArray(v) ? v.join('.') : v}+ </Box>+ {vi < it.fields.length - 1 && (+ <Box+ component={'span'}+ sx={{+ display: 'block',+ my: 1,+ borderTop: theme => `1px solid ${theme.palette.grey[800]}`+ }}+ ></Box>+ )}+ </Fragment>+ )+ })}+ </Typography>+ {idx < item.items.length - 1 && (+ <Box+ component={'span'}+ sx={{+ display: 'block',+ my: 1,+ borderTop: theme => `1px solid ${theme.palette.grey[800]}`+ }}+ ></Box>+ )}+ </Fragment>)})}</Box>@@ -220,9 +253,11 @@ const TabsContent = () => {return (<Fragment key={idx}><Typography variant='caption' className={fonts.className}>- {it.fields.join('.')}+ {it.fields.map(v => (Array.isArray(v) ? v.join('.') : v)).join(',')}</Typography>- {idx < item.items.length - 1 && <span>, </span>}+ {idx < item.items.length - 1 && (+ <span className={clsx(fonts.className, 'twc-text-[12px]')}>,</span>+ )}</Fragment>)})}diff --git a/web/src/app/metalakes/metalake/rightContent/tabsContent/tableView/TableView.js b/web/src/app/metalakes/metalake/rightContent/tabsContent/tableView/TableView.jsindex 71a2ea1464..2549b4ed30 100644--- a/web/src/app/metalakes/metalake/rightContent/tabsContent/tableView/TableView.js+++ b/web/src/app/metalakes/metalake/rightContent/tabsContent/tableView/TableView.js@@ -7,7 +7,7 @@import { Inconsolata } from 'next/font/google'-import { useState, useEffect } from 'react'+import { useState, useEffect, Fragment } from 'react'import Link from 'next/link'@@ -113,15 +113,26 @@ const TableView = () => {<Box sx={{ p: 1.5, px: 4 }}>{items.map((it, idx) => {return (- <Typography- key={idx}- variant='caption'- color='white'- className={fonts.className}- sx={{ display: 'flex', flexDirection: 'column' }}- >- {it.text || it.fields}- </Typography>+ <Fragment key={idx}>+ <Typography+ variant='caption'+ color='white'+ className={fonts.className}+ sx={{ display: 'flex', flexDirection: 'column' }}+ >+ {it.text || it.fields}+ </Typography>+ {idx < items.length - 1 && (+ <Box+ component={'span'}+ sx={{+ display: 'block',+ my: 1,+ borderTop: theme => `1px solid ${theme.palette.grey[800]}`+ }}+ ></Box>+ )}+ </Fragment>)})}</Box>diff --git a/web/src/lib/store/metalakes/index.js b/web/src/lib/store/metalakes/index.jsindex 30742dea55..6b4f07acf4 100644--- a/web/src/lib/store/metalakes/index.js+++ b/web/src/lib/store/metalakes/index.js@@ -672,7 +672,7 @@ export const getTableDetails = createAsyncThunk(fields: i.fieldNames,name: i.name,indexType: i.indexType,- text: `${i.name}(${i.fieldNames.join('.')})`+ text: `${i.name}(${i.fieldNames.map(v => v.join('.')).join(',')})`}})}