From 5572f20a6a92cdd11bc38cfe9d78e28866a5cf60 Mon Sep 17 00:00:00 2001 From: Jing Hua Date: Sat, 4 Mar 2023 08:07:57 +0800 Subject: [PATCH] style: hide scrollbar on mobile --- src/main.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.css b/src/main.css index ed51e17..16e01f5 100644 --- a/src/main.css +++ b/src/main.css @@ -37,6 +37,13 @@ } } + @media screen and (max-width: 768px) { + ::-webkit-scrollbar { + display: none; + scrollbar-width: none; /* Firefox */ + } + } + .dark::-webkit-scrollbar-thumb { --tw-bg-opacity: 1; background-color: rgba(86, 88, 105, var(--tw-bg-opacity));