Skip to content

Commit

Permalink
Upgrade to fritz2 1.0-RC18
Browse files Browse the repository at this point in the history
  • Loading branch information
haukesomm committed Jun 5, 2024
1 parent 6baaa29 commit 87a78a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
kotlin = "1.9.22"
kotlinx-coroutines = "1.7.3"
# kotlinx-serialization = "1.6.2"
fritz2 = "1.0-RC17"
fritz2 = "1.0-RC18"
ksp = "1.9.22-1.0.16"

npm-tailwindcss = "3.3.3"
Expand Down
4 changes: 2 additions & 2 deletions web/src/jsMain/kotlin/de/haukesomm/sokoban/web/GameFrame.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class GameFrame(context: RenderContext) : RenderContext by context {


div(
classes(
joinClasses(
"w-full py-2 px-4 grid grid-cols-1 lg:grid-cols-[2fr_1fr_2fr] gap-4 items-center",
"text-sm bg-background-lightest dark:bg-background-dark shadow-sm dark:shadow-md"
)
Expand Down Expand Up @@ -131,7 +131,7 @@ class GameFrame(context: RenderContext) : RenderContext by context {
title("Settings")
content {
div(
classes(
joinClasses(
"w-full md:w-auto max-w-none md:max-w-4xl p-4 rounded-md",
"grid grid-cols-1 sm:grid-cols-2 gap-6"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,13 @@ class Modal<T, R>(context: RenderContext, payloads: Flow<T>) : RenderContext by

private fun RenderContext.actionButton(text: String, primary: Boolean = false) =
button(
classes(
joinClasses(
"p-1 flex flex-row items-center gap-2 rounded-md text-base font-semibold focus-visible:outline-none",

"""text-primary-500 dark:text-primary-600
| focus-visible:bg-primary-100 focus-visible:dark:bg-primary-900
""".trimMargin().takeIf { primary },

"""text-neutral-dark-secondary dark:text-neutral-light-secondary
| focus-visible:bg-background-light focus-visible:dark:bg-background-darkest
""".trimMargin().takeIf { !primary }
Expand Down

0 comments on commit 87a78a4

Please sign in to comment.