Svelte: fix pre-init error check and Properties panel

This commit is contained in:
Keavon Chambers
2023-01-18 22:55:39 -08:00
parent fb10e5194e
commit 05425e39ec
4 changed files with 23 additions and 16 deletions
@@ -66,6 +66,7 @@
editor.subscriptions.subscribeJsMessage(UpdateLayerTreeOptionsLayout, (updateLayerTreeOptionsLayout) => {
patchWidgetLayout(layerTreeOptionsLayout, updateLayerTreeOptionsLayout);
layerTreeOptionsLayout = layerTreeOptionsLayout;
});
editor.subscriptions.subscribeJsMessage(UpdateDocumentLayerDetails, (updateDocumentLayerDetails) => {
@@ -16,10 +16,12 @@
onMount(() => {
editor.subscriptions.subscribeJsMessage(UpdatePropertyPanelOptionsLayout, (updatePropertyPanelOptionsLayout) => {
patchWidgetLayout(propertiesOptionsLayout, updatePropertyPanelOptionsLayout);
propertiesOptionsLayout = propertiesOptionsLayout;
});
editor.subscriptions.subscribeJsMessage(UpdatePropertyPanelSectionsLayout, (updatePropertyPanelSectionsLayout) => {
patchWidgetLayout(propertiesSectionsLayout, updatePropertyPanelSectionsLayout);
propertiesSectionsLayout = propertiesSectionsLayout;
});
});
</script>
@@ -18,7 +18,7 @@
.optional-input {
flex-grow: 0;
label {
.checkbox-input label {
align-items: center;
justify-content: center;
white-space: nowrap;
@@ -29,7 +29,7 @@
box-sizing: border-box;
}
&.disabled label {
&.disabled .checkbox-input label {
border: 1px solid var(--color-4-dimgray);
}
}