feat(editor): inner toolbar layout for block (#11243)

Close [BS-2808](https://linear.app/affine-design/issue/BS-2808/组件内-toolbar-重构)
This commit is contained in:
L-Sun
2025-03-28 03:47:37 +00:00
parent 7193393a06
commit e2c752d56f
8 changed files with 150 additions and 62 deletions
@@ -77,12 +77,9 @@ export class EdgelessToolbarWidget extends WidgetComponent<RootBlockModel> {
display: flex;
justify-content: center;
}
.edgeless-toolbar-wrapper[data-app-theme='light'] {
${unsafeCSS(lightToolbarStyles.join('\n'))}
}
.edgeless-toolbar-wrapper[data-app-theme='dark'] {
${unsafeCSS(darkToolbarStyles.join('\n'))}
}
${unsafeCSS(lightToolbarStyles('.edgeless-toolbar-wrapper'))}
${unsafeCSS(darkToolbarStyles('.edgeless-toolbar-wrapper'))}
.edgeless-toolbar-toggle-control {
pointer-events: auto;
padding-bottom: 16px;