Improve scrolling experience by hiding all scrollbars
Hide all scrollbars globally using CSS and remove specific scrollbar styles from the SimpleCarousel component. 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:
parent
5f1d516882
commit
53857c2a83
BIN
attached_assets/image_1756488439771.png
Normal file
BIN
attached_assets/image_1756488439771.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
@ -125,11 +125,10 @@ export default function SimpleCarousel({ category, onVideoClick }: SimpleCarouse
|
|||||||
{/* Scroll container */}
|
{/* Scroll container */}
|
||||||
<div
|
<div
|
||||||
ref={scrollContainerRef}
|
ref={scrollContainerRef}
|
||||||
className="overflow-x-auto scrollbar-hide"
|
className="overflow-x-auto"
|
||||||
style={{
|
style={{
|
||||||
scrollbarWidth: 'none',
|
scrollbarWidth: 'none',
|
||||||
msOverflowStyle: 'none',
|
msOverflowStyle: 'none'
|
||||||
WebkitScrollbar: { display: 'none' }
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className="flex space-x-4 pb-4 w-max">
|
<div className="flex space-x-4 pb-4 w-max">
|
||||||
|
|||||||
@ -2,6 +2,30 @@
|
|||||||
@tailwind components;
|
@tailwind components;
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
|
||||||
|
/* Hide ALL scrollbars globally - especially for mobile */
|
||||||
|
* {
|
||||||
|
scrollbar-width: none !important;
|
||||||
|
-ms-overflow-style: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar {
|
||||||
|
display: none !important;
|
||||||
|
width: 0 !important;
|
||||||
|
height: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
scrollbar-width: none !important;
|
||||||
|
-ms-overflow-style: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
html::-webkit-scrollbar,
|
||||||
|
body::-webkit-scrollbar {
|
||||||
|
display: none !important;
|
||||||
|
width: 0 !important;
|
||||||
|
height: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--background: hsl(222, 84%, 4.9%);
|
--background: hsl(222, 84%, 4.9%);
|
||||||
--foreground: hsl(210, 40%, 98%);
|
--foreground: hsl(210, 40%, 98%);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user