mirror of
https://github.com/navidrome/navidrome.git
synced 2026-05-03 06:51:16 +00:00
fix frame
fix frame
This commit is contained in:
parent
fabd2b9a7a
commit
20e7500fb8
@ -7,10 +7,13 @@
|
|||||||
|
|
||||||
// Wait for DOM and APlayer to be ready
|
// Wait for DOM and APlayer to be ready
|
||||||
function initAPlayer() {
|
function initAPlayer() {
|
||||||
|
console.log('APlayer initialization started');
|
||||||
|
|
||||||
if (typeof APlayer === 'undefined') {
|
if (typeof APlayer === 'undefined') {
|
||||||
console.error('APlayer library not loaded');
|
console.error('APlayer library not loaded');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
console.log('APlayer library loaded');
|
||||||
|
|
||||||
// Get share info from the page (injected by server)
|
// Get share info from the page (injected by server)
|
||||||
const shareInfoElement = document.getElementById('share-info');
|
const shareInfoElement = document.getElementById('share-info');
|
||||||
@ -18,6 +21,7 @@
|
|||||||
console.error('Share info not found');
|
console.error('Share info not found');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
console.log('Share info element found:', shareInfoElement.textContent);
|
||||||
|
|
||||||
let shareInfo;
|
let shareInfo;
|
||||||
try {
|
try {
|
||||||
@ -58,6 +62,9 @@
|
|||||||
console.error('APlayer container not found');
|
console.error('APlayer container not found');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
console.log('APlayer container found:', container);
|
||||||
|
|
||||||
|
console.log('Creating APlayer with playlist:', playlist);
|
||||||
|
|
||||||
const ap = new APlayer({
|
const ap = new APlayer({
|
||||||
container: container,
|
container: container,
|
||||||
@ -72,6 +79,8 @@
|
|||||||
mutex: true,
|
mutex: true,
|
||||||
listFolded: false,
|
listFolded: false,
|
||||||
listMaxHeight: 90,
|
listMaxHeight: 90,
|
||||||
|
fixed: false,
|
||||||
|
mini: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Log initialization
|
// Log initialization
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
background: #ffffff;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -56,10 +56,16 @@
|
|||||||
|
|
||||||
.player-wrapper {
|
.player-wrapper {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
min-height: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#aplayer {
|
#aplayer {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
width: 100% !important;
|
||||||
|
height: auto !important;
|
||||||
|
min-height: 200px !important;
|
||||||
|
visibility: visible !important;
|
||||||
|
display: block !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user