feat: implement expandable view for cashflow sankey chart (#739)

* feat: implement expandable view for cashflow sankey chart

* refactor: migrate cashflow dialog sizing to tailwind utilities

* refactor: declarative draggable restore on cashflow dialog close

* refactor: localized title and use Tailwind utilities

* refactor: update dialog interaction especially on mobile

* refactor: add global expand text to localization

* fix: restore draggable immediately after dialog close

* Whitespace noise

---------

Signed-off-by: Juan José Mata <juanjo.mata@gmail.com>
Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
This commit is contained in:
Number Eight
2026-01-23 09:52:15 +01:00
committed by GitHub
parent 6dab611fef
commit 0c6d208ef2
7 changed files with 103 additions and 28 deletions

View File

@@ -77,6 +77,9 @@ export default class extends Controller {
);
if (!section) return;
// Respect strict draggable="false" which might be set by other controllers (e.g. expand-controller)
if (section.getAttribute("draggable") === "false") return;
this.pendingSection = section;
this.touchStartY = event.touches[0].clientY;
this.currentTouchY = this.touchStartY;