fix(settings): make startup preference checkboxes checked by default and remove redundant text

This commit is contained in:
Gigi
2025-10-05 22:26:04 +01:00
parent e931f36dee
commit c407663c2b

View File

@@ -204,11 +204,11 @@ const Settings: React.FC<SettingsProps> = ({ settings, onSave, onClose }) => {
<input <input
id="sidebarCollapsed" id="sidebarCollapsed"
type="checkbox" type="checkbox"
checked={localSettings.sidebarCollapsed === true} checked={localSettings.sidebarCollapsed !== false}
onChange={(e) => setLocalSettings({ ...localSettings, sidebarCollapsed: e.target.checked })} onChange={(e) => setLocalSettings({ ...localSettings, sidebarCollapsed: e.target.checked })}
className="setting-checkbox" className="setting-checkbox"
/> />
<span>Start with bookmarks sidebar collapsed (default: on)</span> <span>Start with bookmarks sidebar collapsed</span>
</label> </label>
</div> </div>
@@ -217,11 +217,11 @@ const Settings: React.FC<SettingsProps> = ({ settings, onSave, onClose }) => {
<input <input
id="highlightsCollapsed" id="highlightsCollapsed"
type="checkbox" type="checkbox"
checked={localSettings.highlightsCollapsed === true} checked={localSettings.highlightsCollapsed !== false}
onChange={(e) => setLocalSettings({ ...localSettings, highlightsCollapsed: e.target.checked })} onChange={(e) => setLocalSettings({ ...localSettings, highlightsCollapsed: e.target.checked })}
className="setting-checkbox" className="setting-checkbox"
/> />
<span>Start with highlights panel collapsed (default: on)</span> <span>Start with highlights panel collapsed</span>
</label> </label>
</div> </div>
</div> </div>