From 99ba45ecebb3f1c8bc2735cf8499bc73f38432f4 Mon Sep 17 00:00:00 2001
From: schroda <50052685+schroda@users.noreply.github.com>
Date: Sun, 19 Nov 2023 22:43:21 +0100
Subject: [PATCH] Use mui tooltip for manga titles (#467)
---
src/components/MangaCard.tsx | 48 +++++++++++++++++++-----------------
1 file changed, 25 insertions(+), 23 deletions(-)
diff --git a/src/components/MangaCard.tsx b/src/components/MangaCard.tsx
index 7fcdc412..be6b7ad3 100644
--- a/src/components/MangaCard.tsx
+++ b/src/components/MangaCard.tsx
@@ -10,7 +10,7 @@ import Card from '@mui/material/Card';
import CardActionArea from '@mui/material/CardActionArea';
import Typography from '@mui/material/Typography';
import { Link } from 'react-router-dom';
-import { Avatar, Box, CardContent, styled } from '@mui/material';
+import { Avatar, Box, CardContent, styled, Tooltip } from '@mui/material';
import { useTranslation } from 'react-i18next';
import { requestManager } from '@/lib/requests/RequestManager.ts';
import { GridLayout, useLibraryOptionsContext } from '@/components/context/LibraryOptionsContext';
@@ -159,30 +159,32 @@ export const MangaCard = (props: IProps) => {
<>
-
- {title}
-
+
+
+ {title}
+
+
>
)}
{gridLayout === GridLayout.Comfortable && (
-
- {title}
-
+
+
+ {title}
+
+
)}
@@ -231,9 +233,9 @@ export const MangaCard = (props: IProps) => {
width: 'min-content',
}}
>
-
- {title}
-
+
+ {title}
+
{inLibraryIndicator && inLibrary && (