mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 07:35:27 +03:00
adjust gap
This commit is contained in:
parent
e4573f6313
commit
eac669e7d9
@ -69,7 +69,7 @@ export default function SearchView({
|
|||||||
const [columnCount, setColumnCount] = usePersistence("exploreGridColumns", 4);
|
const [columnCount, setColumnCount] = usePersistence("exploreGridColumns", 4);
|
||||||
const effectiveColumnCount = useMemo(() => columnCount ?? 4, [columnCount]);
|
const effectiveColumnCount = useMemo(() => columnCount ?? 4, [columnCount]);
|
||||||
|
|
||||||
const gridClassName = cn("grid w-full gap-2 px-1 sm:gap-4 md:mx-2", {
|
const gridClassName = cn("grid w-full gap-2 px-1 gap-2 lg:gap-4 md:mx-2", {
|
||||||
"sm:grid-cols-2": effectiveColumnCount <= 2,
|
"sm:grid-cols-2": effectiveColumnCount <= 2,
|
||||||
"sm:grid-cols-3": effectiveColumnCount === 3,
|
"sm:grid-cols-3": effectiveColumnCount === 3,
|
||||||
"sm:grid-cols-4": effectiveColumnCount === 4,
|
"sm:grid-cols-4": effectiveColumnCount === 4,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user