mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
fix(editor): centerize iframe modal in mobile (#13073)
Close [BS-3160](https://linear.app/affine-design/issue/BS-3160/新的-embed-输入的-sheet-没有弹起来) #### PR Dependency Tree * **PR #13073** 👈 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 * **Bug Fixes** * Improved popup positioning and responsiveness when using virtual keyboards, ensuring popups remain visible and correctly placed above the keyboard. * Standardized how popups and overlays are created and referenced throughout the app, reducing inconsistencies and potential display issues. * Enhanced stability of date picker, AI panels, and slash menu popovers by refining how their elements are managed and updated. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -179,7 +179,7 @@ export class HoverController implements ReactiveController {
|
||||
this._portal = createLitPortal({
|
||||
...portalOptions,
|
||||
abortController: this._abortController,
|
||||
});
|
||||
}).portal;
|
||||
|
||||
const transition = this._hoverOptions.transition;
|
||||
if (transition) {
|
||||
|
||||
@@ -161,7 +161,7 @@ export function createLitPortal({
|
||||
}
|
||||
|
||||
if (!positionConfigOrFn) {
|
||||
return portalRoot;
|
||||
return { portal: portalRoot, update: () => {} };
|
||||
}
|
||||
|
||||
const visibility = portalRoot.style.visibility;
|
||||
@@ -221,5 +221,5 @@ export function createLitPortal({
|
||||
});
|
||||
}
|
||||
|
||||
return portalRoot;
|
||||
return { portal: portalRoot, update };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user