feat: show last played songs in web ui

This commit is contained in:
Felipe M 2025-05-13 12:49:59 +02:00
parent 7f16452a99
commit bcc1bce743
Signed by: fmartingr
GPG key ID: CCFBC5637D4000A8
6 changed files with 206 additions and 7 deletions

View file

@ -128,6 +128,65 @@ h3 {
margin-right: 15px;
}
/* Song History Section */
#song-history {
padding: 20px;
background-color: #f9f9f9;
border-radius: 8px;
margin-top: 20px;
margin-bottom: 20px;
}
.history-container {
max-height: 300px;
overflow-y: auto;
}
.history-list {
list-style-type: none;
padding: 0;
margin: 0;
}
.history-empty {
text-align: center;
color: #666;
font-style: italic;
padding: 20px 0;
}
.history-item {
padding: 10px;
margin-bottom: 10px;
background-color: white;
border-radius: 6px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
}
.history-cover {
width: 50px;
height: 50px;
border-radius: 4px;
margin-right: 15px;
object-fit: cover;
}
.history-details {
flex: 1;
}
.history-title {
font-weight: bold;
margin-bottom: 3px;
}
.history-artist {
color: #666;
font-size: 0.9em;
}
/* Not Playing Section */
#not-playing {
text-align: center;
@ -190,4 +249,18 @@ footer {
#cover-art {
max-width: 150px;
}
.history-item {
padding: 8px;
}
.history-cover {
width: 40px;
height: 40px;
margin-right: 10px;
}
.history-title, .history-artist {
font-size: 0.9em;
}
}