feat: Keep settings menu open after theme selection

This commit is contained in:
2026-01-02 21:49:02 +00:00
committed by Tanner Collin (aider)
parent cde095169f
commit 656c322249

View File

@@ -146,10 +146,10 @@ function App() {
<h3>Settings</h3> <h3>Settings</h3>
<div className="setting-group"> <div className="setting-group">
<h4>Theme</h4> <h4>Theme</h4>
<button className={theme === '' ? 'active' : ''} onClick={() => { light(); setSettingsOpen(false); }}>Light</button> <button className={theme === '' ? 'active' : ''} onClick={() => { light() }}>Light</button>
<button className={theme === 'dark' ? 'active' : ''} onClick={() => { dark(); setSettingsOpen(false); }}>Dark</button> <button className={theme === 'dark' ? 'active' : ''} onClick={() => { dark() }}>Dark</button>
<button className={theme === 'black' ? 'active' : ''} onClick={() => { black(); setSettingsOpen(false); }}>Black</button> <button className={theme === 'black' ? 'active' : ''} onClick={() => { black() }}>Black</button>
<button className={theme === 'red' ? 'active' : ''} onClick={() => { red(); setSettingsOpen(false); }}>Red</button> <button className={theme === 'red' ? 'active' : ''} onClick={() => { red() }}>Red</button>
</div> </div>
<div className="setting-group"> <div className="setting-group">
<h4>Body Font Size</h4> <h4>Body Font Size</h4>