feat: Add X close button to settings modal
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -180,6 +180,7 @@ function App() {
|
||||
{settingsOpen &&
|
||||
<div className="modal-overlay" onClick={() => setSettingsOpen(false)}>
|
||||
<div className="modal-content" onClick={e => e.stopPropagation()}>
|
||||
<button className="close-modal-button" onClick={() => setSettingsOpen(false)}>×</button>
|
||||
<h3>Settings</h3>
|
||||
|
||||
<div className="setting-group">
|
||||
|
||||
@@ -484,3 +484,16 @@ button.comment {
|
||||
.modal-content .font-option {
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.close-modal-button {
|
||||
position: absolute;
|
||||
top: 0.5rem;
|
||||
right: 0.75rem;
|
||||
background: transparent;
|
||||
border: none;
|
||||
font-size: 1.5rem;
|
||||
line-height: 1;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user