🐛(modal) make modal scrollable when height exceeds the viewport height
Currently, if the content of a modal exceeds the viewport height, it is not scrollable.
This commit is contained in:
committed by
Jean-Baptiste PENRATH
parent
0e98dfa1b7
commit
6bae4ad89a
@@ -12,10 +12,12 @@
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
max-width: calc(100% - 2em - 6px);
|
||||
max-height: calc(100% - 2em - 6px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
&__scroller {
|
||||
padding: 1.5rem;
|
||||
max-height: calc(100% - 2em - 6px);
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user