mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
chore(editor): adjust min width of edgeless note (#10153)
Close [BS-2499](https://linear.app/affine-design/issue/BS-2499/所有notes最小宽度调整为218px) ### What changes - adjusted min width of edgeless note - placeholder show ellipsis in min edgeless note - refactored somes button of `change-note-button.ts` with `isPageBlock`
This commit is contained in:
+1
-1
@@ -1145,7 +1145,7 @@ export class EdgelessSelectedRectWidget extends WidgetComponent<
|
||||
this._isWidthLimit = bound.w === NOTE_MIN_WIDTH * scale;
|
||||
this._isHeightLimit = bound.h === NOTE_MIN_HEIGHT * scale;
|
||||
|
||||
if (bound.h >= NOTE_MIN_HEIGHT * scale) {
|
||||
if (bound.h > NOTE_MIN_HEIGHT * scale) {
|
||||
this.doc.updateBlock(element, () => {
|
||||
element.edgeless.collapse = true;
|
||||
element.edgeless.collapsedHeight = bound.h / scale;
|
||||
|
||||
Reference in New Issue
Block a user