mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-19 10:21:14 +03:00
Frontend Miscellaneous fixes (#23751)
* fix: fix logger page i18n * fix: fix button components text * fix: fix command components scrollbar * revert: revert fix button components text
This commit is contained in:
parent
dd7e9f1bc5
commit
c17538aff9
@ -129,7 +129,7 @@ export function GeneralFilterContent({
|
|||||||
className="mx-2 w-full cursor-pointer text-primary smart-capitalize"
|
className="mx-2 w-full cursor-pointer text-primary smart-capitalize"
|
||||||
htmlFor={item}
|
htmlFor={item}
|
||||||
>
|
>
|
||||||
{item.replaceAll("_", " ")}
|
{t(`logger.logLevel.${item}`, { ns: "views/settings" })}
|
||||||
</Label>
|
</Label>
|
||||||
<Switch
|
<Switch
|
||||||
key={item}
|
key={item}
|
||||||
|
|||||||
@ -3,6 +3,7 @@ import { LogSeverity } from "@/types/log";
|
|||||||
import { ReactNode, useMemo } from "react";
|
import { ReactNode, useMemo } from "react";
|
||||||
import { isIOS } from "react-device-detect";
|
import { isIOS } from "react-device-detect";
|
||||||
import { AnimatePresence, motion } from "framer-motion";
|
import { AnimatePresence, motion } from "framer-motion";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
type ChipProps = {
|
type ChipProps = {
|
||||||
className?: string;
|
className?: string;
|
||||||
@ -50,6 +51,7 @@ type LogChipProps = {
|
|||||||
onClickSeverity?: () => void;
|
onClickSeverity?: () => void;
|
||||||
};
|
};
|
||||||
export function LogChip({ severity, onClickSeverity }: LogChipProps) {
|
export function LogChip({ severity, onClickSeverity }: LogChipProps) {
|
||||||
|
const { t } = useTranslation(["views/settings"]);
|
||||||
const severityClassName = useMemo(() => {
|
const severityClassName = useMemo(() => {
|
||||||
switch (severity) {
|
switch (severity) {
|
||||||
case "info":
|
case "info":
|
||||||
@ -73,7 +75,7 @@ export function LogChip({ severity, onClickSeverity }: LogChipProps) {
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{severity}
|
{t(`logger.logLevel.${severity}`, { ns: "views/settings" })}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -60,7 +60,10 @@ const CommandList = React.forwardRef<
|
|||||||
>(({ className, ...props }, ref) => (
|
>(({ className, ...props }, ref) => (
|
||||||
<CommandPrimitive.List
|
<CommandPrimitive.List
|
||||||
ref={ref}
|
ref={ref}
|
||||||
className={cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className)}
|
className={cn(
|
||||||
|
"scrollbar-container max-h-[300px] overflow-y-auto overflow-x-hidden",
|
||||||
|
className,
|
||||||
|
)}
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
));
|
));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user