mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-10-27 08:54:26 +01:00
to not show properties panel at all when editing text
This commit is contained in:
@@ -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")}
|
||||
|
||||
Reference in New Issue
Block a user