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
add cog icon on hover
Sara Vieira81df7b559a4d
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 8989775950..5cbed03d13 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@@ -6,6 +6,7 @@ import { UploadingAnimation } from "./uploading-animation";import type { Asset } from "@webstudio-is/prisma-client";import { UploadingAsset } from "../../types";import { AssetTooltip } from "./asset-tooltip";+import { GearIcon } from "@webstudio-is/icons";const useImageWithFallback = ({path = placeholderImage,@@ -58,26 +59,23 @@ export const AssetThumbnail = (asset: Asset | UploadingAsset) => {const isUploading = status === "uploading";const isUploadedAsset = isUploading === false && "size" in asset;+ const lol = {+ aspectRatio: "1/1",+ display: "flex",+ justifyContent: "center",+ alignItems: "center",+ padding: "0 $2",+ position: "relative",++ "&:hover button": {+ opacity: 1,+ },+ };return (- <Box- title={alt || name}- css={{- aspectRatio: "1/1",- display: "flex",- justifyContent: "center",- alignItems: "center",- padding: "0 $2",- position: "relative",- }}- >+ <Box title={alt || name} css={lol}><Thumbnail path={path} status={status} />{isUploadedAsset && (- <AssetTooltip- asset={asset}- onDelete={() => {- setIsDeleting(true);- }}- />+ <AssetTooltip asset={asset} onDelete={() => setIsDeleting(true)} />)}{(isUploading || isDeleting) && <UploadingAnimation />}</Box>diff --git a/apps/designer/app/designer/features/sidebar-left/panels/asset-manager/asset-tooltip.tsx b/apps/designer/app/designer/features/sidebar-left/panels/asset-manager/asset-tooltip.tsxindex 58ff958907..42f112ec69 100644--- a/apps/designer/app/designer/features/sidebar-left/panels/asset-manager/asset-tooltip.tsx+++ b/apps/designer/app/designer/features/sidebar-left/panels/asset-manager/asset-tooltip.tsx@@ -34,6 +34,7 @@ export const AssetTooltip = ({title="Options"onClick={() => setTooltipOpen(true)}css={{+ opacity: 0,position: "absolute",top: "$1",right: "$1",