Skip to content

Commit

Permalink
fix(edgeless): selection when all elements are connector
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Mar 29, 2024
1 parent 551b17e commit da767de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ export class EdgelessComponentToolbar extends WithDisposable(LitElement) {
this._ImageButton(image),
].filter(b => !!b && b !== nothing);

if (elements.length > 1) {
if (selectedAtLeastTwoTypes && elements.length > 1) {
buttons.unshift(this._Divider());
buttons.unshift(this._AlignButton());
buttons.unshift(this._Divider());
Expand Down

0 comments on commit da767de

Please sign in to comment.