Skip to content

Commit b30892c

Browse files
committed
Use Width.FitContent from Kobweb
1 parent 4978e09 commit b30892c

File tree

1 file changed

+3
-3
lines changed
  • compose-html-common/src/jsMain/kotlin/com/huanshankeji/compose/web

1 file changed

+3
-3
lines changed

compose-html-common/src/jsMain/kotlin/com/huanshankeji/compose/web/Layouts.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ package com.huanshankeji.compose.web
33
import androidx.compose.runtime.Composable
44
import com.huanshankeji.compose.web.attributes.attrs
55
import com.huanshankeji.compose.web.attributes.plus
6-
import com.huanshankeji.compose.web.css.FIT_CONTENT
76
import com.huanshankeji.compose.web.css.Styles
8-
import com.huanshankeji.compose.web.css.width
97
import com.huanshankeji.compose.web.css.wrapInAttrs
8+
import com.varabyte.kobweb.compose.css.Width
9+
import com.varabyte.kobweb.compose.css.width
1010
import org.jetbrains.compose.web.css.*
1111
import org.jetbrains.compose.web.dom.AttrBuilderContext
1212
import org.jetbrains.compose.web.dom.ContentBuilder
@@ -46,7 +46,7 @@ fun Column(
4646
Flexbox(attrs<HTMLDivElement> {
4747
style {
4848
flexDirection(FlexDirection.Column)
49-
if (fitContent) width(FIT_CONTENT)
49+
if (fitContent) width(Width.FitContent)
5050
}
5151
} + attrs, content)
5252

0 commit comments

Comments
 (0)