Skip to content

Commit

Permalink
fixup! Add an option to maximize composer modal
Browse files Browse the repository at this point in the history
Signed-off-by: greta <[email protected]>
  • Loading branch information
GretaD committed Dec 22, 2023
1 parent c5f0602 commit b736531
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/NewMessageModal.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<Modal v-if="showMessageComposer"
:size="largerModal ? 'normal' : 'large'"
:size="largerModal ? 'large' : 'normal'"
:title="modalTitle"
:additional-trap-elements="toolbarElements"
@close="$event.type === 'click' ? onClose() : onMinimize()">
Expand Down Expand Up @@ -165,7 +165,7 @@ export default {
modalFirstOpen: true,
cookedComposerData: undefined,
changed: false,
largerModal: false,
largerModal: localStorage.getItem('modalSize') === 'large' || false,
}
},
computed: {
Expand Down Expand Up @@ -208,6 +208,7 @@ export default {
methods: {
onMaximize() {
this.largerModal = !this.largerModal
localStorage.setItem('modalSize', this.largerModal ? 'large' : 'normal')
},
handleShow(element) {
this.toolbarElements = [element]
Expand Down

0 comments on commit b736531

Please sign in to comment.