mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-30 01:12:39 +00:00
feat(ui): tune mobile active state and fix desktop regression
- Relax `VideoCard` active state detection to a 30% viewport sweet spot (rootMargin -35%) - Strict desktop detection using `window.matchMedia` to prevent active state conflicts - Encapsulate mobile active CSS rules within media query to prevent desktop style leakage - Fix mobile layout overflow issues by enforcing `min-width: 0` - Ensure marquee scrolling effect is robustly toggled based on overflow detection
This commit is contained in:
1 parent
6cead72ee1
commit
222872b59a
1 file changed
+1
-1
@@ -3063,7 +3063,7 @@ export class VideoCard {
|
||||
}
|
||||
}
|
||||
},
|
||||
{ rootMargin: "-45% 0px -45% 0px", threshold: 0 }
|
||||
{ rootMargin: "-35% 0px -35% 0px", threshold: 0 }
|
||||
);
|
||||
}
|
||||
VideoCard.viewportObserver.observe(element);
|
||||
|
||||
Reference in new issue
Block a user