mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 05:35:25 +03:00
Only wrap when needed
This commit is contained in:
parent
9bdbc6c5ec
commit
62bee98c66
@ -171,12 +171,12 @@ export default function VideoControls({
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"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",
|
||||
"w-auto px-4 py-2 flex 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 >
|
||||
MIN_ITEMS_WRAP &&
|
||||
"min-w-[94%]",
|
||||
"flex-wrap min-w-[75%]",
|
||||
)}
|
||||
>
|
||||
{video && features.volume && (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user