aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--module/output/html.scm18
-rw-r--r--static/style.css1
2 files changed, 11 insertions, 8 deletions
diff --git a/module/output/html.scm b/module/output/html.scm
index 63804386..de5bca01 100644
--- a/module/output/html.scm
+++ b/module/output/html.scm
@@ -165,16 +165,18 @@
title: "StΓ€ng"
onclick: ""
class: '("close-tooltip")
- )
- ,(btn "πŸ“…"
- title: "Ladda ner"
- href: (string-append "/calendar/" (prop ev 'UID) ".ics")))
+ ))
,(tabset
- (cons* `("πŸ“…" ,(fmt-single-event ev))
- (when (edit-mode)
- `(("</>" (script (@ (type "application/calendar+xml"))
- ,((@ (output xcal) vcomponent->sxcal) ev))))))))))
+ (append
+ `(("πŸ“…" ,(fmt-single-event ev))
+ ("–" (article (@ (style "font-family:sans"))
+ (p "Ladda ner")
+ (ul (li (a (@ (href ,(string-append "/calendar/" (prop ev 'UID) ".ics"))) "som iCal"))
+ (li (a (@ (href ,(string-append "/calendar/" (prop ev 'UID) ".xcs"))) "som xCal"))))))
+ (when (edit-mode)
+ `(("</>" (script (@ (type "application/calendar+xml"))
+ ,((@ (output xcal) vcomponent->sxcal) ev))))))))))
diff --git a/static/style.css b/static/style.css
index 3a116e6a..f7b8fbfa 100644
--- a/static/style.css
+++ b/static/style.css
@@ -640,6 +640,7 @@ along with their colors.
max-width: 60ch;
max-height: 60ch;
min-width: 40ch;
+ min-height: 20ch;
}
.popup article {