Skip to content

Commit

Permalink
Merge pull request #3544 from LibreSign/fix/draw-width
Browse files Browse the repository at this point in the history
fix: draw width
  • Loading branch information
vitormattos authored Aug 28, 2024
2 parents c004919 + d9bf038 commit 6b98544
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 6b98544

Please sign in to comment.