Skip to content

Commit 0278847

Browse files
committed
make settings modal scrollable
1 parent 4ebdfb5 commit 0278847

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/features/settings/components/SettingsModal.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ export const SettingsModal = ({ showSettings, setShowSettings }: SettingsModalPr
167167
shouldCloseOnOverlayClick={true}
168168
shouldFocusAfterRender={false}
169169
onRequestClose={() => handleCloseModal()}
170-
contentLabel="Minimal Modal Example"
171-
className="Modal"
170+
className="Modal scrollable"
172171
style={{
173172
overlay: {
174173
zIndex: 3,

src/features/settings/components/settings.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Modal
1313
border-radius: 10px;
1414
box-shadow: 0 0 20px #00000052;
1515
z-index: 3;
16+
max-height: 80vh;
17+
overflow-y: scroll;
1618
}
1719

1820
.Overlay {
@@ -188,6 +190,7 @@ Select styles
188190
top: 0;
189191
margin: 0;
190192
height: 100vh;
193+
max-height: 100vh;
191194
transform: translate(0, 0);
192195
border-radius: 0;
193196
position: relative;

0 commit comments

Comments
 (0)