From b32db09994c1a84b22406f61557cceb66eeb5198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 12 Jul 2020 01:19:12 +0200 Subject: Fix graphical event overflow. --- module/output/html.scm | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'module/output/html.scm') diff --git a/module/output/html.scm b/module/output/html.scm index feb68795..8fbd4286 100644 --- a/module/output/html.scm +++ b/module/output/html.scm @@ -230,14 +230,18 @@ (eq? 'TENTATIVE (prop ev 'PARTSTAT))) " tentative")) (onclick "toggle_child_popup(this)")))) - ,(when (prop ev 'RRULE) - `(span (@ (class "repeating")) "↺")) - (span (@ (class "summary")) - ,((get-config 'summary-filter) ev (prop ev 'SUMMARY))) - ,(when (prop ev 'LOCATION) - `(span (@ (class "location")) - ,(string-map (lambda (c) (if (char=? c #\,) #\newline c)) - (prop ev 'LOCATION)))) + ;; Inner div to prevent overflow. Previously "overflow: none" + ;; was set on the surounding div, but the popup /needs/ to + ;; overflow. + (div (@ (class "event-body")) + ,(when (prop ev 'RRULE) + `(span (@ (class "repeating")) "↺")) + (span (@ (class "summary")) + ,((get-config 'summary-filter) ev (prop ev 'SUMMARY))) + ,(when (prop ev 'LOCATION) + `(span (@ (class "location")) + ,(string-map (lambda (c) (if (char=? c #\,) #\newline c)) + (prop ev 'LOCATION))))) ,(popup ev popup-id))))) ;; Format single event for graphical display @@ -822,6 +826,7 @@ `((class " generated ") (style " width: calc(100% * var(--editmode)) "))))))))))) + ;; file existing but is of wrong type, (define (create-files) -- cgit v1.2.3