From: David ‘Bombe’ Roden Date: Sat, 28 May 2016 06:49:33 +0000 (+0200) Subject: Fix and improve table display X-Git-Tag: v2~130 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c6f519b7b1609798595f5bbd090c2bd5eb6b3924;p=rhynodge.git Fix and improve table display --- 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 {