mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-22 04:03:42 +08:00
feat: Implement mobile double-tap gestures for video player controls and apply CSS optimizations.
This commit is contained in:
@@ -23,12 +23,16 @@
|
||||
.video-card-wrapper {
|
||||
/* CSS containment for isolation */
|
||||
contain: layout style paint;
|
||||
|
||||
/* Content visibility for lazy rendering */
|
||||
content-visibility: auto;
|
||||
|
||||
/* Reduce layout shifts */
|
||||
contain-intrinsic-size: auto 400px;
|
||||
}
|
||||
|
||||
@supports (content-visibility: auto) {
|
||||
.video-card-wrapper {
|
||||
/* Content visibility for lazy rendering */
|
||||
content-visibility: auto;
|
||||
|
||||
/* Reduce layout shifts */
|
||||
contain-intrinsic-size: auto 400px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Reduce repaints on images */
|
||||
|
||||
Reference in New Issue
Block a user