From e7d80fcfa91f92c712110d58151df0f8f1e6ed86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 21 Nov 2021 16:08:08 +0100 Subject: Rework popup components. Previously popups were driven through some CSS hacks, which used labels with specific positioning, and z-index changes. This never really worked, and led the rest of the tree to be unmanagable. This commit replaces that system with a simpler one, which is being driven by javascript. This also allowed a much simpler tree, which allowed us to - make the popups rezisable (with a resize anchor) - move the window handle to above (configurable) - Add and remove tabs without having manually reflow where all labels are --- static/elements.ts | 2 -- 1 file changed, 2 deletions(-) (limited to 'static/elements.ts') diff --git a/static/elements.ts b/static/elements.ts index db834fd9..b499556f 100644 --- a/static/elements.ts +++ b/static/elements.ts @@ -4,7 +4,6 @@ import { VEventDL } from './components/vevent-dl' import { ComponentBlock } from './components/vevent-block' import { DateTimeInput } from './components/date-time-input' import { PopupElement } from './components/popup-element' -import { TabElement } from './components/tab-element' import { InputList } from './components/input-list' import { EditRRule } from './components/edit-rrule' @@ -30,5 +29,4 @@ function initialize_components() { /* These maybe also require that the global maps are initialized */ customElements.define('popup-element', PopupElement) - customElements.define('tab-element', TabElement) } -- cgit v1.2.3