From b07b694b4474ac6f0bd8af1c7b2b90b12ddd48a1 Mon Sep 17 00:00:00 2001 From: Ron Lucke <lucke@elan-ev.de> Date: Tue, 11 Jan 2022 09:41:49 +0000 Subject: [PATCH] fixes #457 --- resources/assets/stylesheets/scss/courseware.scss | 3 ++- resources/vue/components/StudipDialog.vue | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/assets/stylesheets/scss/courseware.scss b/resources/assets/stylesheets/scss/courseware.scss index a8a523c57f7..ae3b841be92 100755 --- a/resources/assets/stylesheets/scss/courseware.scss +++ b/resources/assets/stylesheets/scss/courseware.scss @@ -1791,7 +1791,8 @@ d i a l o g overflow-x: auto; display: flex; flex-direction: column; - padding: 0.2em; + padding: 3px; + margin: 3px; max-height: 98vh; .studip-dialog-header, diff --git a/resources/vue/components/StudipDialog.vue b/resources/vue/components/StudipDialog.vue index 0f62f03bec7..b248bb64aab 100755 --- a/resources/vue/components/StudipDialog.vue +++ b/resources/vue/components/StudipDialog.vue @@ -97,6 +97,7 @@ import { FocusTrap } from 'focus-trap-vue'; import VueResizeable from 'vrp-vue-resizable'; let uuid = 0; +const dialogPadding = 3; export default { name: 'studip-dialog', @@ -191,10 +192,10 @@ export default { } }, dialogWidth() { - return this.currentWidth ? this.currentWidth + 'px' : 'unset'; + return this.currentWidth ? (this.currentWidth - dialogPadding * 4) + 'px' : 'unset'; }, dialogHeight() { - return this.currentHeight ? this.currentHeight + 'px' : 'unset'; + return this.currentHeight ? (this.currentHeight - dialogPadding * 4) + 'px' : 'unset'; }, contentHeight() { return this.currentHeight ? this.currentHeight - this.footerHeight + 'px' : 'unset'; -- GitLab