Fix style display

This commit is contained in:
Alexander Nozik 2021-05-09 15:56:15 +03:00
parent e615fcc2bc
commit b8fadb06b5
2 changed files with 17 additions and 23 deletions

View File

@ -28,6 +28,9 @@ public fun RBuilder.ringIsland(handler: RHandler<IslandProps>) {
public fun RBuilder.ringIsland(header: String, handler: RHandler<IslandContentProps>) {
ringIsland {
ringIslandHeader {
attrs{
border = true
}
+header
}
ringIslandContent(handler)

View File

@ -20,14 +20,7 @@ public fun RBuilder.ringPropertyEditor(
key: Any? = null,
) {
ringIsland {
ringIslandHeader {
attrs {
border = true
}
+"Properties"
}
ringIslandContent {
ringIsland("Properties") {
propertyEditor(
ownProperties = vision.ownProperties,
allProperties = vision.allProperties(),
@ -36,7 +29,6 @@ public fun RBuilder.ringPropertyEditor(
key = key
)
}
}
val styles = if (vision is SolidReference) {
(vision.styles + vision.prototype.styles).distinct()
} else {
@ -52,8 +44,6 @@ public fun RBuilder.ringPropertyEditor(
}
ringIslandContent {
ringSmartTabs {
}
styles.forEach { styleName ->
val style = vision.getStyle(styleName)
if (style != null) {
@ -66,6 +56,7 @@ public fun RBuilder.ringPropertyEditor(
}
}
}
}
public fun Element.ringPropertyEditor(
item: Vision,