Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
update todo's with more context
Sultan15489fc34908
diff --git a/apps/designer/app/designer/features/style-panel/controls/combobox-control.tsx b/apps/designer/app/designer/features/style-panel/controls/combobox-control.tsxindex e9fc82fa89..28f9e6470b 100644--- a/apps/designer/app/designer/features/style-panel/controls/combobox-control.tsx+++ b/apps/designer/app/designer/features/style-panel/controls/combobox-control.tsx@@ -48,11 +48,13 @@ export const ComboboxControl = ({const setValue = setProperty(styleConfig.property);+ // @todo abstract to a variant of the combobox component+ // this whole switch block is a stop-gap measure, because i worked on flex-controls before the combobox update+ // the combobox should be updated to supporting this rendered productionswitch (styleConfig.property) {case "rowGap":case "columnGap": {if (category == "layout") {- // @todo abstract to a variant of the combobox componentif (String(currentStyle.display?.value).includes("flex") !== true)break;const Icon =@@ -96,6 +98,9 @@ export const ComboboxControl = ({</Tooltip><TextFieldtype="number"+ // @todo as above fit into that as a better abstraction+ // was returning value with unit i.e 0px instead of 0, so we first stringify to satisfy the typechecker+ // then parseFloat for the valuedefaultValue={parseFloat(String(value.value)) || 0}// @todo looses input state and focus// onChange={(event: ChangeEvent<HTMLInputElement>) => setValue(event.target.value + "px")