diff --git a/apps/builder/app/builder/features/settings-panel/props-section/props-section.tsx b/apps/builder/app/builder/features/settings-panel/props-section/props-section.tsx
index 29b6b07dde00..279df5c509a0 100644
--- a/apps/builder/app/builder/features/settings-panel/props-section/props-section.tsx
+++ b/apps/builder/app/builder/features/settings-panel/props-section/props-section.tsx
@@ -101,6 +101,7 @@ const renderProperty = (
) {
logic.handleChangeByPropName("width", propValue);
logic.handleChangeByPropName("height", propValue);
+ logic.handleChangeByPropName("alt", propValue);
}
},
});
diff --git a/apps/builder/app/builder/shared/image-manager/image-info.tsx b/apps/builder/app/builder/shared/image-manager/image-info.tsx
index e794c4f44e5f..07edea794cdc 100644
--- a/apps/builder/app/builder/shared/image-manager/image-info.tsx
+++ b/apps/builder/app/builder/shared/image-manager/image-info.tsx
@@ -33,6 +33,7 @@ import {
CloudIcon,
DimensionsIcon,
GearIcon,
+ InfoCircleIcon,
PageIcon,
TrashIcon,
} from "@webstudio-is/icons";
@@ -200,7 +201,7 @@ const AssetUsagesList = ({ usages }: { usages: AssetUsage[] }) => {
const UsageDot = styled(Box, {
width: 6,
height: 6,
- backgroundColor: theme.colors.foregroundDestructive,
+ backgroundColor: "#000",
border: "1px solid white",
boxShadow: "0 0 3px rgb(0, 0, 0)",
borderRadius: "50%",
@@ -287,6 +288,18 @@ const ImageInfoContent = ({
});
}
);
+ const [description, setDescription] = useLocalValue(
+ asset.description ?? "",
+ (newDescription) => {
+ const assetId = asset.id;
+ updateWebstudioData((data) => {
+ const asset = data.assets.get(assetId);
+ if (asset) {
+ asset.description = newDescription;
+ }
+ });
+ }
+ );
const authPermit = useStore($authPermit);
@@ -358,6 +371,27 @@ const ImageInfoContent = ({
+
+
+ setDescription(event.target.value)}
+ />
+
+
{authPermit === "view" ? (
@@ -376,9 +410,7 @@ const ImageInfoContent = ({
) : (