diff --git a/apps/client/src/widgets/type_widgets/options/components/OptionsSection.tsx b/apps/client/src/widgets/type_widgets/options/components/OptionsSection.tsx index bd3a930e0..7fb3440fa 100644 --- a/apps/client/src/widgets/type_widgets/options/components/OptionsSection.tsx +++ b/apps/client/src/widgets/type_widgets/options/components/OptionsSection.tsx @@ -2,17 +2,17 @@ import type { ComponentChildren } from "preact"; import { CSSProperties } from "preact/compat"; interface OptionsSectionProps { - title: string; + title?: string; children: ComponentChildren; noCard?: boolean; style?: CSSProperties; + className?: string; } -export default function OptionsSection({ title, children, noCard, style }: OptionsSectionProps) { +export default function OptionsSection({ title, children, noCard, ...rest }: OptionsSectionProps) { return ( -
-

{title}

- +
+ {title &&

{title}

} {children}
); diff --git a/apps/client/src/widgets/type_widgets/options/shortcuts.tsx b/apps/client/src/widgets/type_widgets/options/shortcuts.tsx index e6171f679..b948902c3 100644 --- a/apps/client/src/widgets/type_widgets/options/shortcuts.tsx +++ b/apps/client/src/widgets/type_widgets/options/shortcuts.tsx @@ -36,7 +36,7 @@ export default function ShortcutSettings() { return (