Skip to content

Commit

Permalink
fix: make sessions modal scrollable
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonella Sgarlatta committed Jun 8, 2021
1 parent c38b1f0 commit 0e59a6c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/components/SessionsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const SessionsModal: FunctionComponent<{

return (
<>
<Dialog onDismiss={close} className="sessions-modal">
<Dialog onDismiss={close} className="sessions-modal h-screen py-8">
<div className="sk-modal-content">
<div class="sn-component">
<div class="sk-panel">
Expand All @@ -145,7 +145,7 @@ const SessionsModal: FunctionComponent<{
</button>
</div>
</div>
<div class="sk-panel-content">
<div class="sk-panel-content overflow-y-scroll">
{refreshing ? (
<>
<div class="sk-spinner small info"></div>
Expand Down
9 changes: 9 additions & 0 deletions app/assets/stylesheets/_sn.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@
padding-bottom: 0.375rem;
}

.py-8 {
padding-top: 2rem;
padding-bottom: 2rem;
}

.outline-none {
outline: none;
}
Expand Down Expand Up @@ -254,6 +259,10 @@
height: 4.5rem;
}

.h-screen {
height: 100vh;
}

.max-h-120 {
max-height: 30rem;
}
Expand Down

0 comments on commit 0e59a6c

Please sign in to comment.