Skip to content

Commit

Permalink
feat: make modals scrollable
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-yarmosh committed Aug 25, 2024
1 parent a65ab33 commit d16fcfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pages/probes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
<Dialog
v-model:visible="probeDetailsDialog"
position="top"
class="mt-8 min-w-[700px] max-md:min-w-[95%]"
class="!my-8 min-w-[700px] max-md:min-w-[95%]"
modal
dismissable-mask
:draggable="false"
Expand Down
4 changes: 3 additions & 1 deletion presets/aura/dialog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {

// Size
props.position === 'top' ? 'max-h[calc(95vh-7*16px)]' : 'max-h-[90vh]',
{ 'mt-28': props.position === 'top' },
{ 'my-28': props.position === 'top' },
'w-[50vw]',
'm-0',

Expand Down Expand Up @@ -113,6 +113,8 @@ export default {

// Background and Effects
{ 'has-[.mask-active]:bg-transparent bg-black/40': props.modal },

'overflow-y-scroll',
],
}),
transition: ({ props }) => {
Expand Down

0 comments on commit d16fcfd

Please sign in to comment.