mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 04:57:12 +00:00
fix(webui): readable zoom/Fit controls in fullscreen light mode
In the fullscreen control bar the whole bar uses text-white (it overlays the dark video), but the zoom group and Fit button hardcoded bg-muted, which is light in light mode -> white text on a light background. Use a translucent bg-white/15 for those controls when fullscreen so they stay readable; the normal (non-fullscreen) bar keeps bg-muted. Also fixes the same latent issue in the single-file video player.
This commit is contained in:
@@ -241,7 +241,12 @@ export const VideoControlBar: React.FC<ControlBarProps> = ({
|
||||
<div className="relative flex items-center gap-3">
|
||||
{/* Zoom Controls */}
|
||||
<div className="flex items-center gap-1">
|
||||
<div className="flex items-center gap-1 bg-muted rounded-md p-0.5">
|
||||
<div
|
||||
className={cn(
|
||||
'flex items-center gap-1 rounded-md p-0.5',
|
||||
state.isFullScreen ? 'bg-white/15' : 'bg-muted',
|
||||
)}
|
||||
>
|
||||
<button
|
||||
onClick={() => onZoomChange(zoom * 0.8)}
|
||||
className="p-1 hover:text-primary rounded"
|
||||
@@ -260,7 +265,10 @@ export const VideoControlBar: React.FC<ControlBarProps> = ({
|
||||
</div>
|
||||
<button
|
||||
onClick={onZoomReset}
|
||||
className="text-xs font-medium px-2 py-1 rounded bg-muted hover:text-primary transition-colors"
|
||||
className={cn(
|
||||
'text-xs font-medium px-2 py-1 rounded hover:text-primary transition-colors',
|
||||
state.isFullScreen ? 'bg-white/15' : 'bg-muted',
|
||||
)}
|
||||
>
|
||||
Fit
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user