Skip to content

Commit 6987794

Browse files
luka-nextcloudmejo-
authored andcommitted
feat: update image view width and add title
Signed-off-by: Luka Trovic <luka@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent bc75a56 commit 6987794

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

src/nodes/ImageView.vue

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@
7070
</template>
7171
</transition>
7272
<transition name="fade">
73-
<div v-if="!isMediaAttachment" v-show="loaded" class="image__caption">
73+
<div v-if="!isMediaAttachment"
74+
v-show="loaded"
75+
class="image__caption"
76+
:title="alt">
7477
<figcaption v-if="!editable">
7578
{{ alt }}
7679
</figcaption>
@@ -389,6 +392,7 @@ export default {
389392
}
390393
&__delete {
391394
display: flex;
395+
flex-basis: 20%;
392396
align-items: center;
393397
width: 20px;
394398
height: 20px;
@@ -399,10 +403,11 @@ export default {
399403
cursor: pointer;
400404
}
401405
}
402-
406+
.image__caption__wrapper {
407+
flex-basis: 80%;
408+
}
403409
input[type='text'] {
404-
width: 200px;
405-
max-width: 80%;
410+
width: 85%;
406411
text-align: center;
407412
background-color: transparent;
408413
border: none !important;

0 commit comments

Comments
 (0)