Skip to content

Commit

Permalink
Add tooltip to card title.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouder committed Apr 9, 2024
1 parent af3ae07 commit b281b9a
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions ui/src/components/app-card/app-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import GroupRoundedIcon from '@mui/icons-material/GroupRounded';
import LockRoundedIcon from '@mui/icons-material/LockRounded';
import PublicRoundedIcon from '@mui/icons-material/PublicRounded';
import PushPinRoundedIcon from '@mui/icons-material/PushPinRounded';
import { Button } from '@mui/material';
import { Button, Tooltip } from '@mui/material';
import Card from '@mui/material/Card';
import CardContent from '@mui/material/CardContent';
import CardMedia from '@mui/material/CardMedia';
Expand Down Expand Up @@ -450,14 +450,16 @@ export const AppCard = ({
className="card-title"
sx={{ position: 'relative', top: '5px' }}
>
<span
className="card-content-truncate"
style={{
maxWidth: '165px',
}}
>
{title}
</span>
<Tooltip title={title} placement="top-start">
<span
className="card-content-truncate"
style={{
maxWidth: '165px',
}}
>
{title}
</span>
</Tooltip>
</Typography>
<Typography
variant="body2"
Expand Down

0 comments on commit b281b9a

Please sign in to comment.