Skip to content

Commit d103c53

Browse files
authored
Merge pull request #88 from Twodragon0/fix/lightbox-cursor-mermaid-click
fix: Lightbox 커서 개선 및 Mermaid 이미지 클릭 활성화
2 parents 8c5bc50 + 804dbbe commit d103c53

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

_sass/_lightbox.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@
6868
object-fit: contain;
6969
border-radius: 12px;
7070
box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.4);
71-
cursor: grab;
71+
cursor: zoom-in;
7272
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
7373
transform-origin: center center;
7474
user-select: none;
7575
-webkit-user-drag: none;
7676

7777
&.zoomed {
78-
cursor: move;
78+
cursor: grab;
7979
max-width: none;
8080
max-height: none;
8181
}

assets/js/post-page.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,6 @@
488488
var images = document.querySelectorAll('.clickable-image, .post-content img, .post-image img');
489489
images.forEach(function(img) {
490490
if (img.dataset.lightboxAttached === 'true') return;
491-
// Skip mermaid diagram SVGs (already full-width, no zoom needed)
492-
if (img.src && img.src.indexOf('/mermaid/') !== -1) return;
493491

494492
img.style.cursor = 'zoom-in';
495493
img.dataset.lightboxAttached = 'true';

0 commit comments

Comments
 (0)