Skip to content

A self-hosted media server and file management system

revert: re-enable lyrics edit button with am-lyrics since it determines the query

aminnausin8b5dd207cd6b
diff --git a/resources/js/components/video/plugins/lyrics/AmLyrics.vue b/resources/js/components/video/plugins/lyrics/AmLyrics.vue
index 5ff2cdd7..0a9cbfb5 100644
--- a/resources/js/components/video/plugins/lyrics/AmLyrics.vue
+++ b/resources/js/components/video/plugins/lyrics/AmLyrics.vue
@@ -61,7 +61,7 @@ const applyStyle = () => {
if (!amLyrics.value?.shadowRoot) return;
const style = document.createElement('style');
style.textContent = [
- '.download-controls {!important; align-items: start !important; height: 100% !important;}',
+ '.download-controls {margin-right: 20px !important; margin-top: -4px !important; align-items: start !important; height: 100% !important;}',
'.format-select {min-height: 20px !important;}',
'.download-button {height: 20px !important;}',
].join('');
diff --git a/resources/js/components/video/plugins/lyrics/VideoLyrics.vue b/resources/js/components/video/plugins/lyrics/VideoLyrics.vue
index faba937d..657f28fe 100644
--- a/resources/js/components/video/plugins/lyrics/VideoLyrics.vue
+++ b/resources/js/components/video/plugins/lyrics/VideoLyrics.vue
@@ -321,7 +321,7 @@ defineExpose({ scrollToCurrent });
<div class="pointer-events-auto absolute right-0 bottom-0 left-0 h-16" style="z-index: 6"></div>
</template>
<Teleport defer to="#player-toolbar" v-if="isShowingLyrics">
- <PlayerToolbarButton v-if="!useAmLyrics" @click="handleOpenLyricsModal" title="Edit lyrics" :is-active="!!dirtyLyric">
+ <PlayerToolbarButton @click="handleOpenLyricsModal" title="Edit lyrics" :is-active="!!dirtyLyric">
{{ dirtyLyric ? 'preview' : 'edit' }}
</PlayerToolbarButton>
</Teleport>