mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 05:35:25 +03:00
Use higher amount
This commit is contained in:
parent
a48d59d077
commit
9bdbc6c5ec
@ -48,6 +48,7 @@ const CONTROLS_DEFAULT: VideoControls = {
|
||||
fullscreen: false,
|
||||
};
|
||||
const PLAYBACK_RATE_DEFAULT = isSafari ? [0.5, 1, 2] : [0.5, 1, 2, 4, 8, 16];
|
||||
const MIN_ITEMS_WRAP = 6;
|
||||
|
||||
type VideoControlsProps = {
|
||||
className?: string;
|
||||
@ -173,7 +174,8 @@ export default function VideoControls({
|
||||
"w-auto px-4 py-2 flex flex-wrap sm:flex-nowrap justify-between items-center gap-4 sm:gap-8 text-primary z-50 bg-background/60 rounded-lg",
|
||||
className,
|
||||
isMobileOnly &&
|
||||
Object.values(features).filter((feat) => feat).length > 4 &&
|
||||
Object.values(features).filter((feat) => feat).length >
|
||||
MIN_ITEMS_WRAP &&
|
||||
"min-w-[94%]",
|
||||
)}
|
||||
>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user