Skip to content

Commit bb2860f

Browse files
- FIX: Added missing capture attribute manually.
1 parent 10b9b3a commit bb2860f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/App.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,9 @@ ol:not([class]) li:not([class])
455455
.v-navigation-drawer--rail:not(.v-navigation-drawer--is-hovering) .v-list-group__items * {
456456
display: none;
457457
}
458+
.v-navigation-drawer--top.v-navigation-drawer--active {
459+
height: auto !important;
460+
}
458461
459462
code {
460463
color: #e83e8c;

src/components/modals/MediaModal.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
would not allow to call the `.click()` method on the file input as it's not triggered from a user interaction.
66
-->
77
<v-dialog eager scrollable v-model="dialog" max-width="min(90vw, 1024px)">
8-
<v-card :title="$t(mode === 'video' ? 'modalTitleVideoTag' : 'modalTitleImageTag')">
8+
<v-card :title="$t(mode === 'video' ? 'modalTitleVideoTag' : 'modalTitleImageTag')" id="media-modal">
99
<template #text>
1010
<v-file-input
1111
v-model="inputFile"
@@ -83,7 +83,7 @@
8383
import { useI18n } from 'vue-i18n'
8484
import { useDisplay } from 'vuetify'
8585
import { saveAs } from 'file-saver'
86-
import { mdiAlert, mdiCalendar } from '@mdi/js'
86+
import { mdiAlert, mdiCalendar, mdiPaperclip } from '@mdi/js'
8787
8888
const store = coreStore()
8989
const { platform } = useDisplay()
@@ -232,6 +232,9 @@
232232
233233
onMounted(() => {
234234
emitter.on('tag-media', show)
235+
236+
// Manually force this attribute onto the input field as Vuetify does not support setting it otherwise
237+
document.querySelector('#media-modal input[type=file]')?.setAttribute('capture', 'environment')
235238
})
236239
onBeforeUnmount(() => {
237240
emitter.off('tag-media', show)

0 commit comments

Comments
 (0)