Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: button tooltip should not show on showing image preview (#8224)

pengx17b1e61245ee9b
diff --git a/packages/frontend/core/src/modules/peek-view/view/image-preview/index.tsx b/packages/frontend/core/src/modules/peek-view/view/image-preview/index.tsx
index 5b0779db20..2473f40d5e 100644
--- a/packages/frontend/core/src/modules/peek-view/view/image-preview/index.tsx
+++ b/packages/frontend/core/src/modules/peek-view/view/image-preview/index.tsx
@@ -308,6 +308,7 @@ const ImagePreviewModalImpl = ({
data-testid="image-content"
src={url}
alt={caption}
+ tabIndex={0}
ref={imageRef}
draggable={isZoomedBigger}
onMouseDown={handleDragStart}