mirror of
https://github.com/dergigi/boris.git
synced 2026-01-03 15:04:24 +01:00
fix(settings): constrain Reading Font dropdown width
- Wrap FontSelector in setting-control div - Prevents dropdown from stretching across full page width - Matches layout of other inline controls like color pickers
This commit is contained in:
@@ -22,10 +22,12 @@ const ReadingDisplaySettings: React.FC<ReadingDisplaySettingsProps> = ({ setting
|
||||
|
||||
<div className="setting-group setting-inline">
|
||||
<label htmlFor="readingFont">Reading Font</label>
|
||||
<FontSelector
|
||||
value={settings.readingFont || 'source-serif-4'}
|
||||
onChange={(font) => onUpdate({ readingFont: font })}
|
||||
/>
|
||||
<div className="setting-control">
|
||||
<FontSelector
|
||||
value={settings.readingFont || 'source-serif-4'}
|
||||
onChange={(font) => onUpdate({ readingFont: font })}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="setting-group setting-inline">
|
||||
|
||||
Reference in New Issue
Block a user