diff --git a/frontend/src/components/GalleryFigure.vue b/frontend/src/components/GalleryFigure.vue index b81b500..11cbd04 100644 --- a/frontend/src/components/GalleryFigure.vue +++ b/frontend/src/components/GalleryFigure.vue @@ -11,14 +11,17 @@
+
{{ doc.ext }}
@@ -60,6 +63,12 @@ const sparseText = computed(() => { return `${formatSize(allocated)} allocated of ${formatSize(size)}` }) +const displayName = computed(() => { + const { name, ext } = props.doc + const base = ext ? name.slice(0, name.length - ext.length - 1) : name + return base.replace(/[_.]+/g, ' ') +}) + const onclick = (ev: Event) => { if (m.value!.play()) ev.preventDefault() store.cursor = props.doc.key @@ -81,6 +90,20 @@ const onclick = (ev: Event) => { .after-name { margin-left: 0.3em; } +.ext-badge { + position: absolute; + bottom: 2.5em; + right: 1em; + color: #fff; + font-size: 0.65em; + font-weight: 600; + letter-spacing: 0.03em; + text-transform: uppercase; + text-shadow: 0 0 .2em #000, 0 0 .2em #000; + line-height: 1.4; + pointer-events: none; + user-select: none; +} figure { height: var(--gallery-figure-height, 15em); max-height: var(--gallery-figure-height, 15em); @@ -130,6 +153,7 @@ figcaption span { cursor: default; padding: .5em; color: #fff; + font-size: 0.8em; font-weight: 600; text-shadow: 0 0 .2em #000, 0 0 .2em #000; text-wrap: nowrap; @@ -144,4 +168,8 @@ figcaption .namespacer { height: 2em; width: 2em; } +.rename-wrap { + font-size: 0.8em; + width: 100%; +}