mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 15:45:27 +03:00
two columns on mobile
This commit is contained in:
parent
4fb807afc1
commit
39a5ca5df0
@ -74,7 +74,8 @@ export default function SearchView({
|
|||||||
const effectiveColumnCount = useMemo(() => columnCount ?? 4, [columnCount]);
|
const effectiveColumnCount = useMemo(() => columnCount ?? 4, [columnCount]);
|
||||||
|
|
||||||
const gridClassName = cn(
|
const gridClassName = cn(
|
||||||
"grid w-full gap-2 px-1 gap-2 lg:gap-4 md:mx-2 grid-cols-2",
|
"grid w-full gap-2 px-1 gap-2 lg:gap-4 md:mx-2",
|
||||||
|
isMobileOnly && "grid-cols-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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user