From c6f519b7b1609798595f5bbd090c2bd5eb6b3924 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 28 May 2016 08:49:33 +0200 Subject: [PATCH] Fix and improve table display --- .../rhynodge/webpages/weather/wettercom/WetterComTrigger.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/net/pterodactylus/rhynodge/webpages/weather/wettercom/WetterComTrigger.kt b/src/main/kotlin/net/pterodactylus/rhynodge/webpages/weather/wettercom/WetterComTrigger.kt index d25610a..7409357 100644 --- a/src/main/kotlin/net/pterodactylus/rhynodge/webpages/weather/wettercom/WetterComTrigger.kt +++ b/src/main/kotlin/net/pterodactylus/rhynodge/webpages/weather/wettercom/WetterComTrigger.kt @@ -8,6 +8,7 @@ import kotlinx.html.html import kotlinx.html.img import kotlinx.html.stream.createHTML import kotlinx.html.style +import kotlinx.html.unsafe import net.pterodactylus.rhynodge.Reaction import net.pterodactylus.rhynodge.State import net.pterodactylus.rhynodge.Trigger @@ -48,8 +49,11 @@ class WetterComTrigger : Trigger { return createHTML().html { head { style("text/css") { - +".hour-state { display: table-row; }" - +".hour-state > div { display: table-cell; }" + unsafe { + +".hour-state { display: table-row; }" + +" " + +".hour-state > div { display: table-cell; padding-right: 1em; }" + } } } body { -- 2.7.4