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
nitpicks
Oleg Isonen7f6128f0dbd1
diff --git a/app/canvas/shared/use-outline.tsx b/app/canvas/shared/use-outline.tsxindex d63b16eed6..31bf7f7963 100644--- a/app/canvas/shared/use-outline.tsx+++ b/app/canvas/shared/use-outline.tsx@@ -123,9 +123,11 @@ const Label = styled(},position: {outside: {- marginTop: "-$4",+ top: "-$4",+ },+ inside: {+ top: 0,},- inside: {},},},}@@ -134,7 +136,7 @@ const Label = styled(export const useOutline = (currentInstance: Instance) => {const { element, type } = useElement(currentInstance) ?? {};const style = useStyle(element);- const { ref: labelRefCallback, position } = useLabelPosition();+ const { ref: labelRef, position } = useLabelPosition();const component = element?.dataset?.component;@@ -147,7 +149,7 @@ export const useOutline = (currentInstance: Instance) => {return createPortal(<Outline state={type} style={style} className={darkTheme}>- <Label state={type} position={position} ref={labelRefCallback}>+ <Label state={type} position={position} ref={labelRef}><Icon width="1em" height="1em" />{primitive.label}</Label>