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 13, 2024
1 parent db6cb4b commit 9068909
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 9068909

Please sign in to comment.