to not show properties panel at all when editing text

This commit is contained in:
Ryan Di
2025-08-27 17:55:04 +10:00
parent 2f31911b0d
commit ab3e2d7074

View File

@@ -356,7 +356,8 @@ export const CompactShapeActions = ({
return (
<div className="compact-shape-actions">
{/* Stroke Color */}
{canChangeStrokeColor(appState, targetElements) && (
{canChangeStrokeColor(appState, targetElements) &&
!appState.editingTextElement && (
<div className={clsx("compact-action-item")}>
{renderAction("changeStrokeColor", { compactMode: true })}
</div>
@@ -505,7 +506,8 @@ export const CompactShapeActions = ({
{/* Text Properties */}
{(appState.activeTool.type === "text" ||
targetElements.some(isTextElement)) && (
targetElements.some(isTextElement)) &&
!appState.editingTextElement && (
<>
<div className="compact-action-item">
{renderAction("changeFontFamily", {
@@ -541,7 +543,10 @@ export const CompactShapeActions = ({
>
<div className="selected-shape-actions">
{(appState.activeTool.type === "text" ||
suppportsHorizontalAlign(targetElements, elementsMap)) &&
suppportsHorizontalAlign(
targetElements,
elementsMap,
)) &&
renderAction("changeTextAlign")}
{shouldAllowVerticalAlign(targetElements, elementsMap) &&
renderAction("changeVerticalAlign")}