Skip to content

Commit

Permalink
feat: update image view width and add title
Browse files Browse the repository at this point in the history
Signed-off-by: Luka Trovic <luka@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
  • Loading branch information
luka-nextcloud authored and mejo- committed Jun 8, 2023
1 parent bc75a56 commit 6987794
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/nodes/ImageView.vue
Expand Up @@ -70,7 +70,10 @@
</template>
</transition>
<transition name="fade">
<div v-if="!isMediaAttachment" v-show="loaded" class="image__caption">
<div v-if="!isMediaAttachment"
v-show="loaded"
class="image__caption"
:title="alt">
<figcaption v-if="!editable">
{{ alt }}
</figcaption>
Expand Down Expand Up @@ -389,6 +392,7 @@ export default {
}
&__delete {
display: flex;
flex-basis: 20%;
align-items: center;
width: 20px;
height: 20px;
Expand All @@ -399,10 +403,11 @@ export default {
cursor: pointer;
}
}
.image__caption__wrapper {
flex-basis: 80%;
}
input[type='text'] {
width: 200px;
max-width: 80%;
width: 85%;
text-align: center;
background-color: transparent;
border: none !important;
Expand Down

0 comments on commit 6987794

Please sign in to comment.