Skip to content

Commit

Permalink
Add max-height to OcModal, scroll full modal content if it exceeds wi…
Browse files Browse the repository at this point in the history
…ndow height
  • Loading branch information
pascalwengerter committed May 15, 2024
1 parent 09d262b commit 003d5a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/design-system/src/components/OcModal/OcModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,9 @@ export default defineComponent({
border: 1px solid var(--oc-color-input-border);
border-radius: 15px;
box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
max-height: 90vh;
max-width: 500px;
overflow: auto;
width: 100%;

&:focus {
Expand Down Expand Up @@ -484,8 +486,6 @@ export default defineComponent({
&-body {
color: var(--oc-color-text-default);
line-height: 1.625;
max-height: calc(80vh - 2rem) !important;
overflow-y: auto;
padding: var(--oc-space-medium) var(--oc-space-medium) 0;

span {
Expand Down

0 comments on commit 003d5a4

Please sign in to comment.