mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-28 02:58:22 +03:00
small tweaks
This commit is contained in:
parent
38e1b62135
commit
f774b2282b
@ -287,7 +287,7 @@ export function ObjectFieldTemplate(props: ObjectFieldTemplateProps) {
|
|||||||
<Card className="w-full">
|
<Card className="w-full">
|
||||||
<Collapsible open={isOpen} onOpenChange={setIsOpen}>
|
<Collapsible open={isOpen} onOpenChange={setIsOpen}>
|
||||||
<CollapsibleTrigger asChild>
|
<CollapsibleTrigger asChild>
|
||||||
<CardHeader className="cursor-pointer transition-colors hover:bg-muted/50">
|
<CardHeader className="cursor-pointer p-4 transition-colors hover:bg-muted/50">
|
||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<div>
|
<div>
|
||||||
<CardTitle className="text-sm">{inferredLabel}</CardTitle>
|
<CardTitle className="text-sm">{inferredLabel}</CardTitle>
|
||||||
@ -306,7 +306,7 @@ export function ObjectFieldTemplate(props: ObjectFieldTemplateProps) {
|
|||||||
</CardHeader>
|
</CardHeader>
|
||||||
</CollapsibleTrigger>
|
</CollapsibleTrigger>
|
||||||
<CollapsibleContent>
|
<CollapsibleContent>
|
||||||
<CardContent className="space-y-4 pt-0">
|
<CardContent className="space-y-6 p-4 pt-0">
|
||||||
{hasCustomChildren ? (
|
{hasCustomChildren ? (
|
||||||
children
|
children
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@ -179,7 +179,7 @@ export function SwitchesWidget(props: WidgetProps) {
|
|||||||
</Button>
|
</Button>
|
||||||
</CollapsibleTrigger>
|
</CollapsibleTrigger>
|
||||||
|
|
||||||
<CollapsibleContent className="bg-background_alt p-2 md:max-w-xl">
|
<CollapsibleContent className="rounded-lg bg-secondary p-2 pr-0 md:max-w-md">
|
||||||
{availableEntities.length === 0 ? (
|
{availableEntities.length === 0 ? (
|
||||||
<div className="text-sm text-muted-foreground">{emptyMessage}</div>
|
<div className="text-sm text-muted-foreground">{emptyMessage}</div>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@ -127,7 +127,7 @@ export function SingleSectionPage({
|
|||||||
sectionStatus.isOverridden && (
|
sectionStatus.isOverridden && (
|
||||||
<Badge
|
<Badge
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
className="border-2 border-selected text-xs text-primary-variant"
|
className="cursor-default border-2 border-selected text-xs text-primary-variant"
|
||||||
>
|
>
|
||||||
{t("button.overridden", {
|
{t("button.overridden", {
|
||||||
ns: "common",
|
ns: "common",
|
||||||
@ -138,7 +138,7 @@ export function SingleSectionPage({
|
|||||||
{sectionStatus.hasChanges && (
|
{sectionStatus.hasChanges && (
|
||||||
<Badge
|
<Badge
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
className="bg-danger text-xs text-white"
|
className="cursor-default bg-danger text-xs text-white hover:bg-danger"
|
||||||
>
|
>
|
||||||
{t("modified", { ns: "common", defaultValue: "Modified" })}
|
{t("modified", { ns: "common", defaultValue: "Modified" })}
|
||||||
</Badge>
|
</Badge>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user