aboutsummaryrefslogtreecommitdiff
path: root/src/components/media_modal
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2021-08-16 01:11:16 +0300
committerHenry Jameson <me@hjkos.com>2021-08-16 01:11:43 +0300
commit14ec7d6a41569af555ba5a361edbb413dbbd4c5d (patch)
tree3f570dc3e1abefd9b42a6bf8acef183d019d8c2f /src/components/media_modal
parent7cc19ef2eadd9d2c41f46917b2ce80035712aec7 (diff)
add attachment counter
Diffstat (limited to 'src/components/media_modal')
-rw-r--r--src/components/media_modal/media_modal.vue21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/components/media_modal/media_modal.vue b/src/components/media_modal/media_modal.vue
index e8bc8591..bfe7ee6a 100644
--- a/src/components/media_modal/media_modal.vue
+++ b/src/components/media_modal/media_modal.vue
@@ -66,6 +66,11 @@
{{ description }}
</span>
<span
+ class="counter"
+ >
+ {{ currentIndex + 1 }} / {{ media.length }}
+ </span>
+ <span
v-if="loading"
class="loading-spinner"
>
@@ -110,15 +115,22 @@
}
}
- /* Hardcoded since background is also hardcoded */
- .description {
+ .description,
+ .counter {
+ /* Hardcoded since background is also hardcoded */
color: white;
margin-top: 1em;
text-shadow: 0 0 10px black, 0 0 10px black;
+ padding: 0.2em 2em;
+ }
+
+ .description {
+ flex: 0 0 auto;
+ overflow-y: auto;
+ min-height: 1em;
max-width: 500px;
max-height: 9.5em;
- overflow-y: auto;
- padding: 0 2em;
+ word-break: break-all;
}
.modal-image {
@@ -141,6 +153,7 @@
display: flex;
justify-content: center;
align-items: center;
+
svg {
color: white;
}