Skip to content

Commit

Permalink
small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenfirmin committed Oct 18, 2024
1 parent 54af3a4 commit 353d356
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/jsMain/kotlin/org/example/framework/interop/Css.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ import web.html.HTMLStyleElement
* (kotlin-css does not support classname based styles; kotlin-styled-next is required for that.)
*/
fun CommonAttributeGroupFacade.css(block: CssBuilder.() -> Unit) {
style = CssBuilder().apply {
block()
}.toString().removeSuffix("\n")
style = CssBuilder().apply(block).toString().removeSuffix("\n")
}

var counter = 0
Expand Down

0 comments on commit 353d356

Please sign in to comment.