mirror of
https://github.com/dergigi/boris.git
synced 2025-12-19 15:44:20 +01:00
refactor(settings): move Show highlights checkbox after Default Highlight Visibility
- Reorder settings for better logical flow - Show highlights toggle now appears after visibility controls - Positioned right before the preview section
This commit is contained in:
@@ -47,19 +47,6 @@ const ReadingDisplaySettings: React.FC<ReadingDisplaySettingsProps> = ({ setting
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="setting-group">
|
|
||||||
<label htmlFor="showHighlights" className="checkbox-label">
|
|
||||||
<input
|
|
||||||
id="showHighlights"
|
|
||||||
type="checkbox"
|
|
||||||
checked={settings.showHighlights !== false}
|
|
||||||
onChange={(e) => onUpdate({ showHighlights: e.target.checked })}
|
|
||||||
className="setting-checkbox"
|
|
||||||
/>
|
|
||||||
<span>Show highlights</span>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="setting-group setting-inline">
|
<div className="setting-group setting-inline">
|
||||||
<label>Highlight Style</label>
|
<label>Highlight Style</label>
|
||||||
<div className="setting-buttons">
|
<div className="setting-buttons">
|
||||||
@@ -143,6 +130,19 @@ const ReadingDisplaySettings: React.FC<ReadingDisplaySettingsProps> = ({ setting
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className="setting-group">
|
||||||
|
<label htmlFor="showHighlights" className="checkbox-label">
|
||||||
|
<input
|
||||||
|
id="showHighlights"
|
||||||
|
type="checkbox"
|
||||||
|
checked={settings.showHighlights !== false}
|
||||||
|
onChange={(e) => onUpdate({ showHighlights: e.target.checked })}
|
||||||
|
className="setting-checkbox"
|
||||||
|
/>
|
||||||
|
<span>Show highlights</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div className="setting-preview">
|
<div className="setting-preview">
|
||||||
<div className="preview-label">Preview</div>
|
<div className="preview-label">Preview</div>
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user