mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-22 16:18:22 +03:00
tweaks
This commit is contained in:
parent
1a6e634ba6
commit
cb231ffa66
@ -119,7 +119,7 @@ export default function SaveAllPreviewPopover({
|
|||||||
ns: "views/settings",
|
ns: "views/settings",
|
||||||
})}
|
})}
|
||||||
</span>
|
</span>
|
||||||
<span className="font-mono break-words">
|
<span className="break-all font-mono">
|
||||||
{item.fieldPath}
|
{item.fieldPath}
|
||||||
</span>
|
</span>
|
||||||
<span className="text-muted-foreground">
|
<span className="text-muted-foreground">
|
||||||
@ -127,7 +127,7 @@ export default function SaveAllPreviewPopover({
|
|||||||
ns: "views/settings",
|
ns: "views/settings",
|
||||||
})}
|
})}
|
||||||
</span>
|
</span>
|
||||||
<span className="font-mono whitespace-pre-wrap break-words">
|
<span className="whitespace-pre-wrap break-words font-mono">
|
||||||
{formatValue(item.value)}
|
{formatValue(item.value)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -471,6 +471,14 @@ const CAMERA_SELECT_BUTTON_PAGES = [
|
|||||||
|
|
||||||
const ALLOWED_VIEWS_FOR_VIEWER = ["ui", "debug", "notifications"];
|
const ALLOWED_VIEWS_FOR_VIEWER = ["ui", "debug", "notifications"];
|
||||||
|
|
||||||
|
const LARGE_BOTTOM_MARGIN_PAGES = [
|
||||||
|
"masksAndZones",
|
||||||
|
"motionTuner",
|
||||||
|
"notifications",
|
||||||
|
"frigateplus",
|
||||||
|
"maintenance",
|
||||||
|
];
|
||||||
|
|
||||||
// keys for camera sections
|
// keys for camera sections
|
||||||
const CAMERA_SECTION_MAPPING: Record<string, SettingsType> = {
|
const CAMERA_SECTION_MAPPING: Record<string, SettingsType> = {
|
||||||
detect: "cameraDetect",
|
detect: "cameraDetect",
|
||||||
@ -1140,6 +1148,7 @@ export default function Settings() {
|
|||||||
<Button
|
<Button
|
||||||
onClick={handleUndoAll}
|
onClick={handleUndoAll}
|
||||||
variant="outline"
|
variant="outline"
|
||||||
|
size="sm"
|
||||||
disabled={isSavingAll}
|
disabled={isSavingAll}
|
||||||
className="flex w-full items-center justify-center gap-2"
|
className="flex w-full items-center justify-center gap-2"
|
||||||
>
|
>
|
||||||
@ -1151,6 +1160,7 @@ export default function Settings() {
|
|||||||
<Button
|
<Button
|
||||||
onClick={handleSaveAll}
|
onClick={handleSaveAll}
|
||||||
variant="select"
|
variant="select"
|
||||||
|
size="sm"
|
||||||
disabled={isSavingAll}
|
disabled={isSavingAll}
|
||||||
className="flex w-full items-center justify-center gap-2"
|
className="flex w-full items-center justify-center gap-2"
|
||||||
>
|
>
|
||||||
@ -1280,8 +1290,9 @@ export default function Settings() {
|
|||||||
<Button
|
<Button
|
||||||
onClick={handleUndoAll}
|
onClick={handleUndoAll}
|
||||||
variant="outline"
|
variant="outline"
|
||||||
|
size="sm"
|
||||||
disabled={isSavingAll}
|
disabled={isSavingAll}
|
||||||
className="flex w-full items-center justify-center gap-2"
|
className="flex items-center justify-center gap-2"
|
||||||
>
|
>
|
||||||
{t("button.undoAll", {
|
{t("button.undoAll", {
|
||||||
ns: "common",
|
ns: "common",
|
||||||
@ -1293,6 +1304,7 @@ export default function Settings() {
|
|||||||
size="sm"
|
size="sm"
|
||||||
onClick={handleSaveAll}
|
onClick={handleSaveAll}
|
||||||
disabled={isSavingAll}
|
disabled={isSavingAll}
|
||||||
|
className="flex items-center justify-center gap-2"
|
||||||
>
|
>
|
||||||
{isSavingAll ? (
|
{isSavingAll ? (
|
||||||
<>
|
<>
|
||||||
@ -1414,7 +1426,12 @@ export default function Settings() {
|
|||||||
</SidebarContent>
|
</SidebarContent>
|
||||||
</Sidebar>
|
</Sidebar>
|
||||||
<SidebarInset>
|
<SidebarInset>
|
||||||
<div className="scrollbar-container mb-16 flex-1 overflow-y-auto p-2 pr-0">
|
<div
|
||||||
|
className={cn(
|
||||||
|
"scrollbar-container mb-16 flex-1 overflow-y-auto p-2 pr-0",
|
||||||
|
LARGE_BOTTOM_MARGIN_PAGES.includes(pageToggle) && "mb-24",
|
||||||
|
)}
|
||||||
|
>
|
||||||
{(() => {
|
{(() => {
|
||||||
const CurrentComponent = getCurrentComponent(page);
|
const CurrentComponent = getCurrentComponent(page);
|
||||||
if (!CurrentComponent) return null;
|
if (!CurrentComponent) return null;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user