From 751ffe6f8277c7afdfd32f5ba27df3acd94d82fe Mon Sep 17 00:00:00 2001 From: Daneel Date: Fri, 20 Feb 2026 18:36:51 +0100 Subject: [PATCH] feat: v4.3.0 - cross-day drag (blocks can move between day rows) --- app/config.py | 2 +- app/static/css/app.css | 14 ++++++++ app/static/index.html | 7 ++-- app/static/js/canvas.js | 78 +++++++++++++++++++++++++++++++---------- tests/test_api.py | 3 +- 5 files changed, 81 insertions(+), 23 deletions(-) diff --git a/app/config.py b/app/config.py index f3eee10..3411edb 100644 --- a/app/config.py +++ b/app/config.py @@ -1,5 +1,5 @@ """Application configuration.""" -VERSION = "4.2.0" +VERSION = "4.3.0" MAX_FILE_SIZE_MB = 10 DEFAULT_COLOR = "#ffffff" diff --git a/app/static/css/app.css b/app/static/css/app.css index db2139d..19af716 100644 --- a/app/static/css/app.css +++ b/app/static/css/app.css @@ -765,6 +765,20 @@ body { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; + position: relative; +} + +/* Allow blocks to visually leave their row during cross-day drag */ +.day-rows.dragging .day-row, +.day-rows.dragging .day-timeline { + overflow: visible; +} + +/* Highlight the row being dragged over */ +.day-timeline.drag-target { + background: #eff6ff; + outline: 2px solid var(--accent); + outline-offset: -2px; } .day-label { diff --git a/app/static/index.html b/app/static/index.html index 8e633f6..207634d 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -13,7 +13,7 @@

Scénář Creator

- v4.2 + v4.3