player size and file / folder name

This commit is contained in:
2021-05-23 01:14:36 +08:00
parent 8941c6df28
commit 5bc57be0db
2 changed files with 8 additions and 1 deletions

View File

@@ -349,8 +349,11 @@ const component_audio_player = {
}, },
props: ["file"], props: ["file"],
template: ` template: `
<video v-if="computed_show" :src="computed_playing_audio_file_url" controls autoplay> <div v-if="computed_show">
<span>{{ file.filename }} / {{ file.foldername }}</span>
<video :src="computed_playing_audio_file_url" controls autoplay>
</video> </video>
</div>
`, `,
computed: { computed: {
computed_playing_audio_file_url() { computed_playing_audio_file_url() {

View File

@@ -37,3 +37,7 @@ a.router-link-active {
background-color: lightgray; background-color: lightgray;
border-radius: 0.39em 0.39em 0 0; border-radius: 0.39em 0.39em 0 0;
} }
video {
height: 39px;
width: 100%;
}