Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#1585] improvement(UI): use browser title instead of tooltip of icon button (#1588)

CHEYNEdf2d6221691e
diff --git a/web/app/(home)/MetalakeList.js b/web/app/(home)/MetalakeList.js
index 8beef7995a..9c5135d2e2 100644
--- a/web/app/(home)/MetalakeList.js
+++ b/web/app/(home)/MetalakeList.js
@@ -7,7 +7,7 @@ import { useEffect, useCallback, useState } from 'react'
import Link from 'next/link'
-import { Box, Grid, Card, IconButton, Typography, Tooltip } from '@mui/material'
+import { Box, Grid, Card, IconButton, Typography } from '@mui/material'
import { DataGrid } from '@mui/x-data-grid'
import Icon from '@/components/Icon'
@@ -139,35 +139,32 @@ const MetalakeList = () => {
headerName: 'Actions',
renderCell: ({ row }) => (
<>
- <Tooltip title='Details' placement='top'>
- <IconButton
- size='small'
- sx={{ color: theme => theme.palette.text.secondary }}
- onClick={() => handleShowDetails(row)}
- >
- <Icon icon='bx:show-alt' />
- </IconButton>
- </Tooltip>
-
- <Tooltip title='Edit' placement='top'>
- <IconButton
- size='small'
- sx={{ color: theme => theme.palette.text.secondary }}
- onClick={() => handleShowEditDialog(row)}
- >
- <Icon icon='mdi:square-edit-outline' />
- </IconButton>
- </Tooltip>
-
- <Tooltip title='Delete' placement='top'>
- <IconButton
- size='small'
- sx={{ color: theme => theme.palette.error.light }}
- onClick={() => handleDeleteMetalake(row.name)}
- >
- <Icon icon='mdi:delete-outline' />
- </IconButton>
- </Tooltip>
+ <IconButton
+ title='Details'
+ size='small'
+ sx={{ color: theme => theme.palette.text.secondary }}
+ onClick={() => handleShowDetails(row)}
+ >
+ <Icon icon='bx:show-alt' />
+ </IconButton>
+
+ <IconButton
+ title='Edit'
+ size='small'
+ sx={{ color: theme => theme.palette.text.secondary }}
+ onClick={() => handleShowEditDialog(row)}
+ >
+ <Icon icon='mdi:square-edit-outline' />
+ </IconButton>
+
+ <IconButton
+ title='Delete'
+ size='small'
+ sx={{ color: theme => theme.palette.error.light }}
+ onClick={() => handleDeleteMetalake(row.name)}
+ >
+ <Icon icon='mdi:delete-outline' />
+ </IconButton>
</>
)
}