mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-19 19:16:29 +08:00
fix: tooltip arrow (#3769)
Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
@@ -3,7 +3,7 @@ import { toast as basicToast } from '@affine/component';
|
||||
|
||||
export const toast = (message: string, options?: ToastOptions) => {
|
||||
const mainContainer = document.querySelector(
|
||||
'[data-testid="image-preview-modal"]'
|
||||
'[plugin-id="@affine/image-preview-plugin"]'
|
||||
) as HTMLElement;
|
||||
return basicToast(message, {
|
||||
portal: mainContainer || document.body,
|
||||
|
||||
Reference in New Issue
Block a user