mirror of
https://github.com/lucaorio/obsidian-image-gallery.git
synced 2026-07-22 06:40:31 +00:00
add cursor pointer to images in the gallery
This commit is contained in:
parent
7c80784cae
commit
26261d2dc3
2 changed files with 2 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ const buildHorizontal = (
|
|||
figure.style.borderRadius = `${settings.radius}px`
|
||||
figure.style.flex = '1 0 auto'
|
||||
figure.style.overflow = 'hidden'
|
||||
figure.style.cursor = 'pointer'
|
||||
figure.setAttribute('data-name', file.name)
|
||||
figure.setAttribute('data-folder', file.name)
|
||||
figure.setAttribute('data-src', file.uri)
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ const buildVertical = (
|
|||
figure.style.marginBottom = `${settings.gutter}px`
|
||||
figure.style.width = '100%'
|
||||
figure.style.height = 'auto'
|
||||
figure.style.cursor = 'pointer'
|
||||
figure.setAttribute('data-name', file.name)
|
||||
figure.setAttribute('data-folder', file.name)
|
||||
figure.setAttribute('data-src', file.uri)
|
||||
|
|
|
|||
Loading…
Reference in a new issue