From 8f8242a97a555bd22e26d9b4b458fdb579acee19 Mon Sep 17 00:00:00 2001 From: Lars Westermann Date: Mon, 10 Jun 2019 20:47:45 +0200 Subject: [PATCH] Change button styles --- portal.toml | 2 +- src/jsMain/resources/style/components/_form.scss | 1 + src/jvmMain/kotlin/de/kif/backend/view/MainTemplate.kt | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/portal.toml b/portal.toml index 3d4bb02..0f51a59 100644 --- a/portal.toml +++ b/portal.toml @@ -1,7 +1,7 @@ [server] host = "localhost" port = 8080 -prefix = "" +prefix = "/plan" debug = false [schedule] diff --git a/src/jsMain/resources/style/components/_form.scss b/src/jsMain/resources/style/components/_form.scss index 0bcaf31..eb242f5 100644 --- a/src/jsMain/resources/style/components/_form.scss +++ b/src/jsMain/resources/style/components/_form.scss @@ -130,6 +130,7 @@ select:-moz-focusring { display: inline-block; margin-right: 0.6rem; + margin-bottom: 0.5rem; border-radius: $border-radius; font-weight: 600; diff --git a/src/jvmMain/kotlin/de/kif/backend/view/MainTemplate.kt b/src/jvmMain/kotlin/de/kif/backend/view/MainTemplate.kt index 8444d8e..f96a52e 100644 --- a/src/jvmMain/kotlin/de/kif/backend/view/MainTemplate.kt +++ b/src/jvmMain/kotlin/de/kif/backend/view/MainTemplate.kt @@ -127,7 +127,7 @@ suspend fun PipelineContext.respondMain( body: MainTemplate.(Theme) -> Unit ) { val param = call.request.queryParameters["theme"] - val url = call.request.uri.substring(1 + prefix.length) + val url = call.request.uri.drop(1 + prefix.length) val user = call.sessions.get()?.getUser(call) if (param != null) {