mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 22:34:47 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user