mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 06:18:45 +08:00
@@ -42,7 +42,7 @@ export const PeekViewManagerModal = () => {
|
||||
|
||||
return (
|
||||
<PeekViewModalContainer
|
||||
open={show}
|
||||
open={show && !!preview}
|
||||
target={
|
||||
activePeekView?.target instanceof HTMLElement
|
||||
? activePeekView.target
|
||||
|
||||
@@ -18,11 +18,11 @@ export const WorkbenchLink = forwardRef<
|
||||
(typeof to === 'string' ? to : `${to.pathname}${to.search}${to.hash}`);
|
||||
const handleClick = useCallback(
|
||||
(event: React.MouseEvent<HTMLAnchorElement>) => {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
if (onClick?.(event)) {
|
||||
return;
|
||||
}
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
if (event.ctrlKey || event.metaKey) {
|
||||
if (appSettings.enableMultiView && environment.isDesktop) {
|
||||
|
||||
Reference in New Issue
Block a user