From 2b7b13a99f15b0083939c42efc327704f1536185 Mon Sep 17 00:00:00 2001 From: spencerwooo Date: Sun, 29 Aug 2021 15:13:50 +0100 Subject: [PATCH] hide scrollbar for breadcrumb --- components/Breadcrumb.tsx | 2 +- components/FileListing.tsx | 2 +- styles/globals.css | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/components/Breadcrumb.tsx b/components/Breadcrumb.tsx index 2e7fa48..8c62816 100644 --- a/components/Breadcrumb.tsx +++ b/components/Breadcrumb.tsx @@ -8,7 +8,7 @@ const Breadcrumb: FunctionComponent<{ query?: ParsedUrlQuery }> = ({ query }) => const { path } = query if (Array.isArray(path)) { return ( -
+
🚩 Home
diff --git a/components/FileListing.tsx b/components/FileListing.tsx index 1dbca1c..f8355b0 100644 --- a/components/FileListing.tsx +++ b/components/FileListing.tsx @@ -167,7 +167,7 @@ const FileListing: FunctionComponent<{ query?: ParsedUrlQuery }> = ({ query }) = }) return ( -
+
Name
Last Modified
diff --git a/styles/globals.css b/styles/globals.css index 8106792..70ca3d1 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -4,6 +4,20 @@ @tailwind components; @tailwind utilities; +@layer utilities { + @variants responsive { + /* Chrome, Safari and Opera */ + .no-scrollbar::-webkit-scrollbar { + display: none; + } + + .no-scrollbar { + -ms-overflow-style: none; /* IE and Edge */ + scrollbar-width: none; /* Firefox */ + } + } +} + .react-pdf__Page__canvas { @apply mx-auto; @apply shadow-md;