Adjust scrollbar hiding to only affect mobile devices

Modify client/src/index.css to conditionally hide scrollbars on screens up to 768px wide, reverting the global hiding behavior.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2eb1084e-b728-4449-9231-f1665924c8d5
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2eb1084e-b728-4449-9231-f1665924c8d5/yexZbDm
This commit is contained in:
sebastjanartic 2025-08-29 17:29:08 +00:00
parent 53857c2a83
commit c693139f55

View File

@ -2,28 +2,30 @@
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;
/* Hide ALL scrollbars globally - especially for mobile */ /* Hide scrollbars only on mobile devices */
* { @media (max-width: 768px) {
scrollbar-width: none !important; * {
-ms-overflow-style: none !important; scrollbar-width: none !important;
} -ms-overflow-style: none !important;
}
*::-webkit-scrollbar { *::-webkit-scrollbar {
display: none !important; display: none !important;
width: 0 !important; width: 0 !important;
height: 0 !important; height: 0 !important;
} }
html, body { html, body {
scrollbar-width: none !important; scrollbar-width: none !important;
-ms-overflow-style: none !important; -ms-overflow-style: none !important;
} }
html::-webkit-scrollbar, html::-webkit-scrollbar,
body::-webkit-scrollbar { body::-webkit-scrollbar {
display: none !important; display: none !important;
width: 0 !important; width: 0 !important;
height: 0 !important; height: 0 !important;
}
} }
:root { :root {