mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-02-18 13:29:36 +01:00
fix: ensure verticalAlign properties not shown when no element selected (#4860)
* fix: ensure verticalAlign properties not shown when no element selected * show verticalAlign prop if selection contains at least one applicable element * simplify
This commit is contained in:
parent
6d0716eb6b
commit
94b387ef7b
@ -110,10 +110,10 @@ export const SelectedShapeActions = ({
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{targetElements.every(
|
{targetElements.some(
|
||||||
(element) =>
|
(element) =>
|
||||||
hasBoundTextElement(element) || isBoundToContainer(element),
|
hasBoundTextElement(element) || isBoundToContainer(element),
|
||||||
) && <>{renderAction("changeVerticalAlign")}</>}
|
) && renderAction("changeVerticalAlign")}
|
||||||
{(canHaveArrowheads(elementType) ||
|
{(canHaveArrowheads(elementType) ||
|
||||||
targetElements.some((element) => canHaveArrowheads(element.type))) && (
|
targetElements.some((element) => canHaveArrowheads(element.type))) && (
|
||||||
<>{renderAction("changeArrowhead")}</>
|
<>{renderAction("changeArrowhead")}</>
|
||||||
|
Loading…
Reference in New Issue
Block a user