From fa1a5fadd299ef9064c2419fc5f2df5dd06f4f73 Mon Sep 17 00:00:00 2001 From: fds2610-bot Date: Sat, 25 Apr 2026 16:02:07 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20#48:=20Draggable=20Split-Pane=20f=C3=BCr?= =?UTF-8?q?=20Belegvorschau=20und=20Buchungsdetails?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/css/app.css | 44 +++++++++++++++++++++++-- src/Views/belege/detail.php | 65 +++++++++++++++++++++++++++++++++++-- src/version.txt | 2 +- 3 files changed, 104 insertions(+), 7 deletions(-) diff --git a/public/static/css/app.css b/public/static/css/app.css index 4e00b26..ae731e6 100644 --- a/public/static/css/app.css +++ b/public/static/css/app.css @@ -349,13 +349,15 @@ td { padding: .65rem 1rem; vertical-align: middle; } /* ── Beleg Detail (Split-Pane) ───────────────────────────────── */ .beleg-layout { - display: grid; - grid-template-columns: 1fr 520px; - gap: 1.5rem; + display: flex; align-items: start; + gap: 0; } .beleg-preview { + flex: 0 0 auto; + width: var(--beleg-preview-width, calc(100% - 520px - 8px)); + min-width: 200px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); @@ -371,6 +373,42 @@ td { padding: .65rem 1rem; vertical-align: middle; } display: block; } +.beleg-layout-right { + flex: 1 1 0; + min-width: 320px; + margin-left: 1.5rem; +} + +.split-handle { + flex: 0 0 8px; + width: 8px; + align-self: stretch; + cursor: col-resize; + background: transparent; + position: relative; + margin: 0 2px; + z-index: 10; +} + +.split-handle::before { + content: ''; + position: absolute; + top: 0; + bottom: 0; + left: 50%; + transform: translateX(-50%); + width: 4px; + background: var(--color-border); + border-radius: 2px; + transition: background .15s; +} + +.split-handle:hover::before, +.split-handle.dragging::before { + background: var(--color-primary, #2563eb); + width: 4px; +} + /* ── Invoice preview (DIN 5008) ──────────────────────────────── */ .invoice-preview thead th { text-transform: none; diff --git a/src/Views/belege/detail.php b/src/Views/belege/detail.php index cc2148c..0e128c5 100644 --- a/src/Views/belege/detail.php +++ b/src/Views/belege/detail.php @@ -159,10 +159,10 @@ $suppliers = $suppliers ?? []; -
+
-
+
@@ -176,8 +176,11 @@ $suppliers = $suppliers ?? [];
+ +
+ -
+
@@ -1205,3 +1208,59 @@ document.addEventListener('DOMContentLoaded', function() { }); + + diff --git a/src/version.txt b/src/version.txt index c8f01f0..8c7da58 100644 --- a/src/version.txt +++ b/src/version.txt @@ -1 +1 @@ -1-260421 +1-260425