Add tooltip containing full manga title to title of manga (#221)
In case the title is truncated it's still possible to view the full manga title. Same way as it is done on e.g. Twitch or YouTube
This commit is contained in:
@@ -178,6 +178,7 @@ const MangaCard = React.forwardRef<HTMLDivElement, IProps>((props: IProps, ref)
|
|||||||
color: 'white',
|
color: 'white',
|
||||||
textShadow: '0px 0px 3px #000000',
|
textShadow: '0px 0px 3px #000000',
|
||||||
}}
|
}}
|
||||||
|
title={title}
|
||||||
>
|
>
|
||||||
{truncateText(title, 61)}
|
{truncateText(title, 61)}
|
||||||
</MangaTitle>
|
</MangaTitle>
|
||||||
@@ -190,6 +191,7 @@ const MangaCard = React.forwardRef<HTMLDivElement, IProps>((props: IProps, ref)
|
|||||||
position: 'relative',
|
position: 'relative',
|
||||||
color: 'text.primary',
|
color: 'text.primary',
|
||||||
}}
|
}}
|
||||||
|
title={title}
|
||||||
>
|
>
|
||||||
{truncateText(title, 61)}
|
{truncateText(title, 61)}
|
||||||
</MangaTitle>
|
</MangaTitle>
|
||||||
@@ -244,7 +246,7 @@ const MangaCard = React.forwardRef<HTMLDivElement, IProps>((props: IProps, ref)
|
|||||||
width: 'min-content',
|
width: 'min-content',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography variant="h5" component="h2">
|
<Typography variant="h5" component="h2" title={title}>
|
||||||
{truncateText(title, 61)}
|
{truncateText(title, 61)}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Reference in New Issue
Block a user