diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2022-07-15 11:14:02 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2022-07-15 10:15:42 +0000 |
commit | 7658b1d767dc4f6ea07a0de0807bc13d0c5e8919 (patch) | |
tree | 3d00153c02e4ad6a00c818cec35a0e704e669818 | |
parent | 7e4330aee20e9e412a48894166746501c7b5ae0e (diff) |
Fix entity picker modal size
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
-rw-r--r-- | src/components/EntityPicker/EntityPicker.vue | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/components/EntityPicker/EntityPicker.vue b/src/components/EntityPicker/EntityPicker.vue index 35de20ca..1d2ddd9b 100644 --- a/src/components/EntityPicker/EntityPicker.vue +++ b/src/components/EntityPicker/EntityPicker.vue @@ -21,7 +21,7 @@ <template> <Modal - size="full" + size="normal" @close="onCancel"> <!-- Wrapper for content & navigation --> <div class="entity-picker"> @@ -372,8 +372,7 @@ export default { <style lang="scss" scoped> // Dialog variables -$dialog-margin: 20px; -$dialog-width: 320px; +$dialog-padding: 20px; $dialog-height: 480px; $entity-spacing: 4px; @@ -394,15 +393,10 @@ $icon-margin: ($clickable-area - $icon-size) / 2; position: relative; display: flex; flex-direction: column; - /** This next 2 rules are pretty hacky, with the modal component somehow - the margin applied to the content is added to the total modal width, - so here we subtract it to the width and height of the content. - */ - width: $dialog-width; - max-width: 100vw; - height: $dialog-height; - max-height: calc(100vh - #{$dialog-margin} * 2 - 10px); - margin: $dialog-margin; + min-height: $dialog-height; + height: 100%; + padding: $dialog-padding; + box-sizing: border-box; &__search { position: relative; |