mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-24 18:02:47 +08:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user