mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-17 05:38:25 +03:00
add activity indicator and scrollbar tweaks
This commit is contained in:
parent
d05145d62a
commit
b7ee094246
@ -749,6 +749,10 @@ export function ConfigSection({
|
|||||||
? t(`${sectionPath}.description`, { ns: configNamespace })
|
? t(`${sectionPath}.description`, { ns: configNamespace })
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|
||||||
|
if (!sectionSchema || !config) {
|
||||||
|
return <ActivityIndicator />;
|
||||||
|
}
|
||||||
|
|
||||||
const sectionContent = (
|
const sectionContent = (
|
||||||
<div className="space-y-6">
|
<div className="space-y-6">
|
||||||
<ConfigForm
|
<ConfigForm
|
||||||
|
|||||||
@ -93,6 +93,7 @@ export function ObjectLabelSwitchesWidget(props: WidgetProps) {
|
|||||||
getEntities: getObjectLabels,
|
getEntities: getObjectLabels,
|
||||||
getDisplayLabel: getObjectLabelDisplayName,
|
getDisplayLabel: getObjectLabelDisplayName,
|
||||||
i18nKey: "objectLabels",
|
i18nKey: "objectLabels",
|
||||||
|
listClassName: "max-h-64 overflow-y-auto scrollbar-container",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -42,6 +42,7 @@ export function ZoneSwitchesWidget(props: WidgetProps) {
|
|||||||
getEntities: getZoneNames,
|
getEntities: getZoneNames,
|
||||||
getDisplayLabel: getZoneDisplayName,
|
getDisplayLabel: getZoneDisplayName,
|
||||||
i18nKey: "zoneNames",
|
i18nKey: "zoneNames",
|
||||||
|
listClassName: "max-h-64 overflow-y-auto scrollbar-container",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user