mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-16 10:06:42 +03:00
Fix layout
This commit is contained in:
parent
c66daf2946
commit
029fd544b8
@ -98,7 +98,8 @@ export const ClassificationCard = forwardRef<
|
||||
<div
|
||||
ref={ref}
|
||||
className={cn(
|
||||
"relative flex size-48 cursor-pointer flex-col overflow-hidden rounded-lg outline outline-[3px]",
|
||||
"relative flex cursor-pointer flex-col overflow-hidden rounded-lg outline outline-[3px]",
|
||||
isMobile ? "!size-full" : "size-48",
|
||||
selected
|
||||
? "shadow-selected outline-selected"
|
||||
: "outline-transparent duration-500",
|
||||
|
||||
@ -51,7 +51,7 @@ import {
|
||||
useRef,
|
||||
useState,
|
||||
} from "react";
|
||||
import { isDesktop, isMobileOnly } from "react-device-detect";
|
||||
import { isDesktop, isMobile, isMobileOnly } from "react-device-detect";
|
||||
import { Trans, useTranslation } from "react-i18next";
|
||||
import {
|
||||
LuFolderCheck,
|
||||
@ -696,15 +696,16 @@ function TrainingGrid({
|
||||
ref={contentRef}
|
||||
className={cn(
|
||||
"scrollbar-container gap-3 overflow-y-scroll p-1",
|
||||
isMobileOnly ? "grid grid-cols-2" : "flex flex-wrap",
|
||||
isMobile
|
||||
? "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-8"
|
||||
: "flex flex-wrap",
|
||||
)}
|
||||
>
|
||||
{Object.entries(faceGroups).map(([key, group]) => {
|
||||
const event = events?.find((ev) => ev.id == key);
|
||||
return (
|
||||
<div>
|
||||
<div key={key} className={cn(isMobile && "aspect-square size-full")}>
|
||||
<FaceAttemptGroup
|
||||
key={key}
|
||||
config={config}
|
||||
group={group}
|
||||
event={event}
|
||||
|
||||
@ -929,13 +929,18 @@ function ObjectTrainGrid({
|
||||
ref={contentRef}
|
||||
className={cn(
|
||||
"scrollbar-container gap-3 overflow-y-scroll p-1",
|
||||
isMobileOnly ? "grid grid-cols-2 px-2" : "flex flex-wrap",
|
||||
isMobile
|
||||
? "grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-8"
|
||||
: "flex flex-wrap",
|
||||
)}
|
||||
>
|
||||
{Object.entries(groups).map(([key, group]) => {
|
||||
const event = events?.find((ev) => ev.id == key);
|
||||
return (
|
||||
<div>
|
||||
<div
|
||||
key={key}
|
||||
className={cn(isMobile && "aspect-square size-full")}
|
||||
>
|
||||
<GroupedClassificationCard
|
||||
key={key}
|
||||
group={group}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user