aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--module/output/html.scm7
-rw-r--r--static/style.css8
2 files changed, 9 insertions, 6 deletions
diff --git a/module/output/html.scm b/module/output/html.scm
index 2d113b35..2d485791 100644
--- a/module/output/html.scm
+++ b/module/output/html.scm
@@ -845,12 +845,7 @@
summary: "New Event")))))
(caddar ; strip <a> tag
(make-block (car (children cal))
- `((class " generated ")
- ;; TODO currently without this the event is always
- ;; full width. Adding this however completely breaks
- ;; creation of long events.
- ;; (style "width:calc(100%*var(--editmode));")
- )
+ `((class " generated "))
element-id: "GENERATED")))))))))
diff --git a/static/style.css b/static/style.css
index a413ce83..36f1a0c3 100644
--- a/static/style.css
+++ b/static/style.css
@@ -621,6 +621,14 @@ along with their colors.
transition: none;
}
+.longevents .event.generated {
+ bottom: 0;
+ height: calc(100% * var(--editmode));
+}
+.events .event.generated {
+ width: calc(100% * var(--editmode));
+}
+
.clock-0 { top: calc(100%/24 * 0); }
.clock-2 { top: calc(100%/24 * 2); }
.clock-4 { top: calc(100%/24 * 4); }