fix: editor style (#14440)

#### PR Dependency Tree


* **PR #14440** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Style**
* Refined CSS styling rules in workspace detail pages for improved
layout rendering consistency.
* Enhanced editor container display handling during loading states to
ensure proper layout adjustments.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
DarkSky
2026-02-14 19:12:24 +08:00
committed by GitHub
parent 819402d9f1
commit c0694c589b

View File

@@ -48,10 +48,14 @@ export const affineDocViewport = style({
});
export const pageModeViewportContentBox = style({});
globalStyle(`${pageModeViewportContentBox} >:first-child`, {
display: 'table !important',
minWidth: '100%',
});
globalStyle(
`${pageModeViewportContentBox} >:first-child:has(>[data-affine-editor-container])`,
{ display: 'table !important', minWidth: '100%' }
);
globalStyle(
`${pageModeViewportContentBox} >:first-child:has(>[data-editor-loading="true"]) > [data-editor-loading="true"]`,
{ flex: 1, minHeight: '100%' }
);
export const scrollbar = style({
marginRight: '4px',