Skip to content

Commit

Permalink
improve layout
Browse files Browse the repository at this point in the history
  • Loading branch information
jillesvangurp committed Nov 11, 2024
1 parent e208eda commit a803907
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/jsMain/kotlin/components/layout.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fun RenderContext.flexRow(content: HtmlTag<HTMLDivElement>.() -> Unit) {
}

fun RenderContext.flexRowReverse(content: HtmlTag<HTMLDivElement>.() -> Unit) {
div("flex flex-row-reverse flex-nowrap gap-2 align-middle place-items-start", content = content)
div("flex flex-row-reverse flex-nowrap gap-2 items-start", content = content)
}

fun RenderContext.flexRowCentered(content: HtmlTag<HTMLDivElement>.() -> Unit) {
Expand Down
2 changes: 1 addition & 1 deletion src/jsMain/kotlin/search/search.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fun RenderContext.searchScreen() {
}
centeredMainPanel {
flexRowReverse {
div("flex flex-col items-left space-y-1 w-fit m-auto") {
div("flex flex-col justify-start space-y-1 w-fit mx-auto") {
h1(content = fun HtmlTag<HTMLHeadingElement>.() {
+config.name
})
Expand Down

0 comments on commit a803907

Please sign in to comment.