From 1832b031be7c8b1ff668d39c3b85b8f585ffe2b7 Mon Sep 17 00:00:00 2001 From: Julie Blanc Date: Fri, 6 Mar 2026 18:07:27 +0100 Subject: [PATCH] =?UTF-8?q?popup=20move=20handle=E2=80=AF+=20resize?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/css/style.css | 14 ++++++++++++- src/components/ui/BasePopup.vue | 35 +++++++++++++++++++++++++++++++-- 2 files changed, 46 insertions(+), 3 deletions(-) diff --git a/public/assets/css/style.css b/public/assets/css/style.css index 6435e6e..5ef9aed 100644 --- a/public/assets/css/style.css +++ b/public/assets/css/style.css @@ -535,9 +535,15 @@ input[type=number] { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); z-index: 10; width: 860px; - max-height: 600px; + height: 600px; + min-width: 480px; + max-width: 75vw; + min-height: 250px; + max-height: 70vh; display: flex; flex-direction: column; + resize: both; + overflow: hidden; } .popup-header { @@ -547,6 +553,12 @@ input[type=number] { padding: 0.75rem 1rem; border-bottom: 1px solid #e0e0e0; background: #f9f9f9; + cursor: grab; + user-select: none; +} + +.popup-header:active { + cursor: grabbing; } .header-left { diff --git a/src/components/ui/BasePopup.vue b/src/components/ui/BasePopup.vue index 2e16e4d..b116790 100644 --- a/src/components/ui/BasePopup.vue +++ b/src/components/ui/BasePopup.vue @@ -4,7 +4,7 @@ class="settings-popup" :style="{ top: position.y + 'px', left: position.x + 'px' }" > -