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
use visibility instead of display to fix tooltip pos, pass fill over props to the gear icon explicitely
Oleg Isonen6ce08816dfd1
diff --git a/apps/designer/app/designer/features/sidebar-left/panels/asset-manager/asset-info-tigger.tsx b/apps/designer/app/designer/features/sidebar-left/panels/asset-manager/asset-info-tigger.tsxindex b9d9b3a947..1fe10a496f 100644--- a/apps/designer/app/designer/features/sidebar-left/panels/asset-manager/asset-info-tigger.tsx+++ b/apps/designer/app/designer/features/sidebar-left/panels/asset-manager/asset-info-tigger.tsx@@ -40,7 +40,7 @@ export const AssetInfoTrigger = ({title="Options"onClick={() => setTooltipOpen(true)}css={{- display: "var(--display-info-trigger)",+ visibility: "var(--info-trigger-visibility)",position: "absolute",color: "$slate11",top: "$1",@@ -52,7 +52,7 @@ export const AssetInfoTrigger = ({},}}>- <GearIcon fill={theme.colors.loContrast} />+ <GearIcon fill={String(theme.colors.loContrast)} /></Button></Tooltip>);diff --git a/apps/designer/app/designer/features/sidebar-left/panels/asset-manager/asset-thumbnail.tsx b/apps/designer/app/designer/features/sidebar-left/panels/asset-manager/asset-thumbnail.tsxindex 4512921b61..ab7a6c99a2 100644--- a/apps/designer/app/designer/features/sidebar-left/panels/asset-manager/asset-thumbnail.tsx+++ b/apps/designer/app/designer/features/sidebar-left/panels/asset-manager/asset-thumbnail.tsx@@ -67,9 +67,9 @@ export const AssetThumbnail = (asset: Asset | UploadingAsset) => {alignItems: "center",padding: "0 $2",position: "relative",- "--display-info-trigger": "none",+ "--info-trigger-visibility": "hidden","&:hover": {- "--display-info-trigger": "block",+ "--info-trigger-visibility": "visible",},}}>diff --git a/packages/icons/src/gear.tsx b/packages/icons/src/gear.tsxindex 5fae841fad..2d8ff07702 100644--- a/packages/icons/src/gear.tsx+++ b/packages/icons/src/gear.tsx@@ -18,10 +18,10 @@ export const GearIcon = React.forwardRef<<pathd="M9.117 2.878c-.284-1.17-1.95-1.17-2.234 0a1.149 1.149 0 01-1.714.71c-1.03-.627-2.207.551-1.58 1.58a1.15 1.15 0 01-.711 1.715c-1.17.284-1.17 1.95 0 2.234a1.15 1.15 0 01.71 1.714c-.627 1.03.551 2.207 1.58 1.58a1.148 1.148 0 011.715.711c.284 1.17 1.95 1.17 2.234 0a1.15 1.15 0 011.714-.71c1.03.627 2.207-.551 1.58-1.58a1.148 1.148 0 01.711-1.715c1.17-.284 1.17-1.95 0-2.234a1.15 1.15 0 01-.71-1.714c.627-1.03-.551-2.207-1.58-1.58a1.15 1.15 0 01-1.715-.711z"stroke={color}- fill={fill}strokeWidth={1.25}strokeLinecap="round"strokeLinejoin="round"+ style={{ fill }}/><circle cx={8} cy={7.99988} r={1.875} stroke={color} strokeWidth={1.25} /></svg>