show combined properties only when using suitable tools

This commit is contained in:
Ryan Di
2025-09-25 17:25:25 +10:00
parent 786e62f65b
commit f6c8880f2e

View File

@@ -330,8 +330,13 @@ const CombinedShapeProperties = ({
hasBackground(element.type) && !isTransparent(element.backgroundColor),
);
const shouldShowCombinedProperties = targetElements.length > 0;
const shouldShowCombinedProperties =
targetElements.length > 0 ||
(appState.activeTool.type !== "selection" &&
appState.activeTool.type !== "eraser" &&
appState.activeTool.type !== "hand" &&
appState.activeTool.type !== "laser" &&
appState.activeTool.type !== "lasso");
const isOpen = appState.openPopup === "compactStrokeStyles";
if (!shouldShowCombinedProperties) {