From 58437afd55e2b91acee5da4c130faceca389ae18 Mon Sep 17 00:00:00 2001 From: NotMatta Date: Fri, 20 Dec 2024 16:02:05 +0100 Subject: [PATCH] chrome ui fixes --- src/components/page-components/side.tsx | 4 ++-- src/index.css | 21 +++++++++++++++++++++ src/routes/media-browse.tsx | 2 +- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src/components/page-components/side.tsx b/src/components/page-components/side.tsx index a80dbdd..2f80d10 100644 --- a/src/components/page-components/side.tsx +++ b/src/components/page-components/side.tsx @@ -4,12 +4,12 @@ import { useState } from "react" const Side = ({data}:{data:{Media:MediaType}}) => { const [showMore,setShowMore] = useState(false) return( -
+
-
+
{data.Media.title.romaji} diff --git a/src/index.css b/src/index.css index 1c9b990..22fd8ff 100644 --- a/src/index.css +++ b/src/index.css @@ -7,3 +7,24 @@ body { font-family: 'Inter', sans-serif; } + +body div::-webkit-scrollbar-track +{ + -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); + border-radius: 5px; + background-color: rgba(0,0,0,.1); +} + +body div::-webkit-scrollbar +{ + width: 4px; + height: 4px; + background-color: rgba(0,0,0,.1); +} + +body div::-webkit-scrollbar-thumb +{ + border-radius: 5px; + -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3); + background-color: #555; +} diff --git a/src/routes/media-browse.tsx b/src/routes/media-browse.tsx index 2d02170..62c8338 100644 --- a/src/routes/media-browse.tsx +++ b/src/routes/media-browse.tsx @@ -6,7 +6,7 @@ const MediaBrowse = ({initType}:{initType:string}) => { const [page,setPage] = useState({anime:(initType == "anime"),manga:(initType == "manga")}); //to prevent spam return(
-
+