File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
common/src/jsMain/kotlin/com/huanshankeji/compose/foundation/layout Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import com.huanshankeji.compose.ui.unit.toPx
99import com.varabyte.kobweb.compose.foundation.layout.Arrangement
1010import com.varabyte.kobweb.compose.ui.styleModifier
1111import org.jetbrains.compose.web.css.StyleScope
12- import org.jetbrains.compose.web.css.gap
1312import com.varabyte.kobweb.compose.foundation.layout.Arrangement as PlatformArrangement
1413
1514@Immutable
@@ -73,11 +72,7 @@ actual object Arrangement {
7372
7473 @Stable
7574 actual fun spacedBy (space : Dp ): HorizontalOrVertical =
76- object : HorizontalOrVertical .FromStyleImpl () {
77- override fun StyleScope.styles () {
78- gap(space.toPx())
79- }
80- }
75+ HorizontalOrVertical .Impl (PlatformArrangement .spacedBy(space.toPx()))
8176}
8277
8378fun PlatformModifier.stylesFrom (arrangement : CommonArrangement ) =
You can’t perform that action at this time.
0 commit comments