From c75cde394dee359c9a13ff5fe4f53cacb0853cda Mon Sep 17 00:00:00 2001 From: real-zephex Date: Tue, 14 May 2024 01:20:34 +0530 Subject: minor changes to the manga page --- src/app/kdrama/[id]/buttons.jsx | 15 +++++++++++---- src/app/manga/[title]/title.module.css | 25 +++++++++++++++++++++++-- 2 files changed, 34 insertions(+), 6 deletions(-) diff --git a/src/app/kdrama/[id]/buttons.jsx b/src/app/kdrama/[id]/buttons.jsx index e31adf1..66292e7 100644 --- a/src/app/kdrama/[id]/buttons.jsx +++ b/src/app/kdrama/[id]/buttons.jsx @@ -13,7 +13,7 @@ import { export default function EpisodesButtons({ data: episodeData, id: dramaId }) { const [videoLink, setVideoLink] = useState(null); - async function test(a, b, episodeText) { + async function test(a, b) { let link = await getVideoLink(a, b); setVideoLink(link); } @@ -23,7 +23,7 @@ export default function EpisodesButtons({ data: episodeData, id: dramaId }) {

Episodes

- {episodeData && + {episodeData && episodeData.length > 0 ? ( episodeData.map((item, index) => ( - ))} + )) + ) : ( +

+ No episodes are available at the moment but they + will be made available soon. Thank you for your + patience. +

+ )}
diff --git a/src/app/manga/[title]/title.module.css b/src/app/manga/[title]/title.module.css index 203efad..7ed09bd 100644 --- a/src/app/manga/[title]/title.module.css +++ b/src/app/manga/[title]/title.module.css @@ -77,8 +77,29 @@ max-width: 100%; } + .MangaEntries { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + text-align: center; + } + + .MangaEntries img { + width: auto; + height: auto; + border-radius: 0.3rem; + background-color: #121212; + padding: 0.2rem; + } + + .MangaTitle { + font-weight: 600; + } + .MangaDescription { - max-height: 10rem; + max-height: 7.5rem; overflow: auto; } -} + +} \ No newline at end of file -- cgit v1.2.3