fix(editor): set edgeless note style will override collapse state (#10098)

Close [BS-2489](https://linear.app/affine-design/issue/BS-2489/%E6%94%B9%E5%8F%98note-style%E4%BC%9A%E9%87%8D%E7%BD%AEcollapse%E7%8A%B6%E6%80%81)
This commit is contained in:
L-Sun
2025-02-11 14:29:25 +00:00
parent 0b3c7a578e
commit 54d194afe7
4 changed files with 107 additions and 2 deletions

View File

@@ -99,6 +99,7 @@ export class EdgelessChangeNoteButton extends WithDisposable(LitElement) {
this.notes.forEach(note => {
const props = {
edgeless: {
...note.edgeless,
style: {
...note.edgeless.style,
borderRadius,
@@ -275,6 +276,7 @@ export class EdgelessChangeNoteButton extends WithDisposable(LitElement) {
this.notes.forEach(note => {
const props = {
edgeless: {
...note.edgeless,
style: {
...note.edgeless.style,
shadowType,
@@ -289,6 +291,7 @@ export class EdgelessChangeNoteButton extends WithDisposable(LitElement) {
this.notes.forEach(note => {
const props = {
edgeless: {
...note.edgeless,
style: {
...note.edgeless.style,
borderStyle,
@@ -303,6 +306,7 @@ export class EdgelessChangeNoteButton extends WithDisposable(LitElement) {
this.notes.forEach(note => {
const props = {
edgeless: {
...note.edgeless,
style: {
...note.edgeless.style,
borderSize,