UI: Final legacy hardware fix - 720p optimization and leninent reveal logic for iPhone XR
This commit is contained in:
parent
2eb8d25a06
commit
c3f9a4fc9a
Binary file not shown.
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 11 KiB |
Binary file not shown.
@ -288,15 +288,15 @@ export function UserHeader({ user, preferences, onModalStateChange }: UserHeader
|
|||||||
{...({ "disableRemotePlayback": true } as any)}
|
{...({ "disableRemotePlayback": true } as any)}
|
||||||
onContextMenu={(e) => e.preventDefault()}
|
onContextMenu={(e) => e.preventDefault()}
|
||||||
poster="/videos/smoke-poster.jpg"
|
poster="/videos/smoke-poster.jpg"
|
||||||
onCanPlayThrough={() => setIsVideoLoaded(true)}
|
onLoadedData={() => setIsVideoLoaded(true)}
|
||||||
onPlay={() => setIsVideoPlaying(true)}
|
onPlay={() => setIsVideoPlaying(true)}
|
||||||
className={cn(
|
className={cn(
|
||||||
"absolute inset-0 w-full h-full object-cover scale-110 brightness-[1.1] dark:brightness-[0.85] transition-all duration-[2000ms] ease-in-out",
|
"absolute inset-0 w-full h-full object-cover scale-110 brightness-[1.1] dark:brightness-[0.85] transition-all duration-[2000ms] ease-in-out",
|
||||||
isVideoPlaying
|
isVideoPlaying
|
||||||
? "opacity-70 dark:opacity-50 blur-0"
|
? "opacity-70 dark:opacity-50 blur-0"
|
||||||
: isVideoLoaded
|
: isVideoLoaded
|
||||||
? "opacity-40 blur-[2px]"
|
? "opacity-30 blur-[4px]"
|
||||||
: "opacity-0 blur-sm"
|
: "opacity-10 blur-sm"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<source src="/videos/smoke.mp4" type="video/mp4" />
|
<source src="/videos/smoke.mp4" type="video/mp4" />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user