Skip to content

Commit 87743e8

Browse files
committed
fix window parameter & click behavior cursoer bug
1 parent 528b31a commit 87743e8

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/components/docImageClient.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,9 @@ export function DocImageClient({
3030

3131
// For external images or invalid dimensions, fall back to regular img tag
3232
if (src.startsWith('http') || !isValidDimensions) {
33-
const handleClick = (e: React.MouseEvent) => {
34-
// If Ctrl/Cmd+click, open image in new tab
35-
if (e.ctrlKey || e.metaKey) {
36-
window.open(imgPath, '_blank', 'noreferrer');
37-
return;
38-
}
33+
const handleClick = () => {
34+
// Always open image in new tab
35+
window.open(imgPath, '_blank');
3936
};
4037

4138
return (

0 commit comments

Comments
 (0)