Skip to content

Commit

Permalink
fix: draw width
Browse files Browse the repository at this point in the history
The NcModal component (maybe) have a media problem that broke the height
of our Draw component. I made a workaround to fix this.

Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Aug 28, 2024
1 parent c004919 commit d9bf038
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Components/Draw/Draw.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<NcDialog v-if="mounted"
class="draw-signature"
:size="size"
:name="t('libresign', 'Customize your signatures')"
@closing="close">
<NcAppSidebar active="tab-draw"
Expand Down Expand Up @@ -93,6 +94,11 @@ export default {
mounted: false,
}
},
computed: {
size() {
return window.matchMedia('(max-width: 512px)').matches ? 'full' : 'small'
},
},
mounted() {
this.mounted = true
},
Expand All @@ -118,10 +124,6 @@ export default {
::v-deep #tab-tab-upload {
min-width: 350px;
}
::v-deep .modal-container {
width: unset !important;
height: unset !important;
}
::v-deep aside {
border-left: unset;
}
Expand Down

0 comments on commit d9bf038

Please sign in to comment.