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
scrub cursor on unit icon
Sultan1036425c8164
diff --git a/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.tsx b/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.tsxindex ace855ff2c..ce034ab76c 100644--- a/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.tsx+++ b/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.tsx@@ -292,7 +292,10 @@ export const CssValueInput = ({const isCurrentBreakpoint = useIsFromCurrentBreakpoint(property);const prefix = icon && (- <TextFieldIconButton state={isCurrentBreakpoint ? "set" : undefined}>+ <TextFieldIconButton+ state={isCurrentBreakpoint ? "set" : undefined}+ css={value.type == "unit" ? { cursor: "ew-resize" } : {}}+ >{icon}</TextFieldIconButton>);diff --git a/packages/design-system/src/components/text-field.tsx b/packages/design-system/src/components/text-field.tsxindex c8870ed381..279d02f91c 100644--- a/packages/design-system/src/components/text-field.tsx+++ b/packages/design-system/src/components/text-field.tsx@@ -258,7 +258,7 @@ export type TextFieldProps = Pick<"variant" | "state" | "css"> &Omit<React.ComponentProps<"input">, "prefix" | "children"> & {- fieldRef?: React.Ref<HTMLDivElement>;+ baseRef?: React.Ref<HTMLDivElement>;inputRef?: React.Ref<HTMLInputElement>;prefix?: React.ReactNode;suffix?: React.ReactNode;@@ -270,7 +270,7 @@ export const TextField = React.forwardRef<HTMLDivElement, TextFieldProps>(prefix,css,disabled,- fieldRef,+ baseRef,inputRef,state,variant: variantProp,@@ -315,7 +315,7 @@ export const TextField = React.forwardRef<HTMLDivElement, TextFieldProps>(<TextFieldBase{...focusWithinProps}aria-disabled={disabled}- ref={mergeRefs(forwardedRef, fieldRef ?? null)}+ ref={mergeRefs(forwardedRef, baseRef ?? null)}state={state}variant={variant}css={css}