Skip to content

Commit 07f3bfe

Browse files
committed
fix(ImageView): use cursor: pointer for clickable items
Also move the click handler for non-image attachments from the full-width container box to the attachment box with a visible boundary. Signed-off-by: Jonas <jonas@freesources.org>
1 parent 1ac7b79 commit 07f3bfe

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

src/nodes/ImageView.vue

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@
2323
<div
2424
v-if="isMediaAttachment"
2525
contenteditable="false"
26-
class="media"
27-
@click="handleAttachmentClick">
28-
<div class="media__wrapper">
26+
class="media">
27+
<div class="media__wrapper clickable" @click="handleAttachmentClick">
2928
<img
3029
v-show="loaded"
3130
:src="imageUrl"
@@ -53,7 +52,7 @@
5352
v-show="loaded"
5453
:src="imageUrl"
5554
:alt="alt"
56-
class="image__main"
55+
class="image__main clickable"
5756
@click="handleImageClick"
5857
@load="onLoaded" />
5958
</div>
@@ -552,6 +551,14 @@ export default {
552551
justify-content: left;
553552
padding-bottom: 0;
554553
554+
.clickable {
555+
cursor: pointer;
556+
557+
* {
558+
cursor: pointer;
559+
}
560+
}
561+
555562
.media__wrapper {
556563
display: flex;
557564
border: 2px solid var(--color-border);
@@ -579,6 +586,7 @@ export default {
579586
}
580587
}
581588
}
589+
582590
.buttons {
583591
margin-left: 8px;
584592
}

0 commit comments

Comments
 (0)