fix(client/options): missing ribbon widgets section in Appearance

This commit is contained in:
Elian Doran 2025-10-03 16:01:31 +03:00
parent e971a9cb03
commit f442c56ed6
No known key found for this signature in database

View File

@ -90,6 +90,7 @@ export default function AppearanceSettings() {
{isElectron() && <ElectronIntegration /> }
<Performance />
<MaxContentWidth />
<RibbonOptions />
<RelatedSettings items={[
{
title: t("settings_appearance.related_code_blocks"),
@ -305,3 +306,16 @@ function MaxContentWidth() {
</OptionsSection>
)
}
function RibbonOptions() {
const [ editedNotesOpenInRibbon, setEditedNotesOpenInRibbon ] = useTriliumOptionBool("editedNotesOpenInRibbon");
return (
<OptionsSection title={t('ribbon.widgets')}>
<FormCheckbox
label={t('ribbon.edited_notes_message')}
currentValue={editedNotesOpenInRibbon} onChange={setEditedNotesOpenInRibbon}
/>
</OptionsSection>
)
}