mirror of
https://github.com/zadam/trilium.git
synced 2026-01-03 21:24:24 +01:00
fix(react/settings): unnecessary top margin
This commit is contained in:
parent
b9b4961f3c
commit
5614891d92
@ -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 (
|
||||
<div className={`options-section ${noCard && "tn-no-card"}`} style={style}>
|
||||
<h4>{title}</h4>
|
||||
|
||||
<div className={`options-section ${noCard && "tn-no-card"}`} {...rest}>
|
||||
{title && <h4>{title}</h4>}
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
|
||||
@ -36,7 +36,7 @@ export default function ShortcutSettings() {
|
||||
|
||||
return (
|
||||
<OptionsSection
|
||||
title={t("shortcuts.keyboard_shortcuts")}
|
||||
className="shortcuts-options-section"
|
||||
style={{ display: "flex", flexDirection: "column", height: "100%" }}
|
||||
noCard
|
||||
>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user