fix frame

fix frame
This commit is contained in:
Sora 2026-01-19 14:52:36 +08:00
parent fabd2b9a7a
commit 20e7500fb8
2 changed files with 16 additions and 1 deletions

View File

@ -7,10 +7,13 @@
// Wait for DOM and APlayer to be ready
function initAPlayer() {
console.log('APlayer initialization started');
if (typeof APlayer === 'undefined') {
console.error('APlayer library not loaded');
return;
}
console.log('APlayer library loaded');
// Get share info from the page (injected by server)
const shareInfoElement = document.getElementById('share-info');
@ -18,6 +21,7 @@
console.error('Share info not found');
return;
}
console.log('Share info element found:', shareInfoElement.textContent);
let shareInfo;
try {
@ -58,7 +62,10 @@
console.error('APlayer container not found');
return;
}
console.log('APlayer container found:', container);
console.log('Creating APlayer with playlist:', playlist);
const ap = new APlayer({
container: container,
lrcType: 0,
@ -72,6 +79,8 @@
mutex: true,
listFolded: false,
listMaxHeight: 90,
fixed: false,
mini: false,
});
// Log initialization

View File

@ -18,7 +18,7 @@
body {
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;
display: flex;
flex-direction: column;
@ -56,10 +56,16 @@
.player-wrapper {
padding: 20px;
min-height: 300px;
}
#aplayer {
margin: 0;
width: 100% !important;
height: auto !important;
min-height: 200px !important;
visibility: visible !important;
display: block !important;
}
.footer {