PR feedback
This commit is contained in:
parent
f4fc8e5e97
commit
aa7fe8f1b5
|
@ -125,7 +125,7 @@
|
||||||
// Catch any app errors
|
// Catch any app errors
|
||||||
loading = false
|
loading = false
|
||||||
error = event.error || "An unknown error occurred"
|
error = event.error || "An unknown error occurred"
|
||||||
} else if (type === "select-component" && "id" in data) {
|
} else if (type === "select-component" && data.id) {
|
||||||
componentStore.select(data.id)
|
componentStore.select(data.id)
|
||||||
componentTreeNodesStore.makeNodeVisible(data.id)
|
componentTreeNodesStore.makeNodeVisible(data.id)
|
||||||
} else if (type === "hover-component") {
|
} else if (type === "hover-component") {
|
||||||
|
|
|
@ -5,14 +5,10 @@
|
||||||
$: color = $builderStore.editMode
|
$: color = $builderStore.editMode
|
||||||
? "var(--spectrum-global-color-static-green-500)"
|
? "var(--spectrum-global-color-static-green-500)"
|
||||||
: "var(--spectrum-global-color-static-blue-600)"
|
: "var(--spectrum-global-color-static-blue-600)"
|
||||||
|
|
||||||
$: isScreen = $builderStore.selectedComponentId?.startsWith(
|
|
||||||
$builderStore.screen._id
|
|
||||||
)
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<IndicatorSet
|
<IndicatorSet
|
||||||
componentId={!isScreen ? $builderStore.selectedComponentId : null}
|
componentId={$builderStore.selectedComponentId}
|
||||||
{color}
|
{color}
|
||||||
zIndex={900}
|
zIndex={900}
|
||||||
allowResizeAnchors
|
allowResizeAnchors
|
||||||
|
|
Loading…
Reference in New Issue