Skip to content

Commit

Permalink
layout bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jillesvangurp committed Oct 10, 2023
1 parent 4fd23ab commit 1d2788a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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 @@ -5,7 +5,7 @@ import org.w3c.dom.HTMLDivElement
import org.w3c.dom.HTMLElement

fun RenderContext.row(content: HtmlTag<HTMLDivElement>.() -> Unit) {
div("flex flex-row gap-2 align-middle", content = content)
div("flex flex-row gap-2 align-middle place-items-center", content = content)
}
fun RenderContext.rowCentered(content: HtmlTag<HTMLDivElement>.() -> Unit) {
div("flex flex-row gap-2 align-middle place-items-center mx-auto w-fit", content = content)
Expand Down
6 changes: 3 additions & 3 deletions src/jsMain/kotlin/testcases/testcases.kt
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ fun RenderContext.testCase(showStore: Store<Map<String, Boolean>>, rsStore: Stor
leftRightRow {
val showTagEditorStore = storeOf(false)
row {
tagsStore.data.renderIf({it.isNotEmpty()}) {
div { +"Tags:" }
}

div { +"Tags:" }

tagsStore.data.renderEach {tag ->
secondaryButton(text = tag) {

Expand Down

0 comments on commit 1d2788a

Please sign in to comment.