Open album art in new tab when clicking on it

This commit is contained in:
Sijmen 2023-04-27 04:03:52 +02:00
parent 726268b005
commit 89dc500b7f
Signed by: vijfhoek
GPG Key ID: DAF7821E067D9C48
2 changed files with 7 additions and 1 deletions

View File

@ -166,7 +166,11 @@
background-color: #445; background-color: #445;
width: 80px; width: 80px;
height: 80px; height: 80px;
transition: transform 200ms ease-in-out;
} }
.nowplaying .albumart:hover {
transform: scale(1.05);
};
.nowplaying .metadata { .nowplaying .metadata {
flex: 1; flex: 1;

View File

@ -4,7 +4,9 @@
<div class="current"> <div class="current">
{% if let Some(song) = song %} {% if let Some(song) = song %}
<div class="albumart"> <div class="albumart">
<img src="/art?path={{ song.file }}" onerror="this.style.opacity = 0"> <a href="/art?path={{ song.file }}" target="_blank">
<img src="/art?path={{ song.file }}" onerror="this.style.opacity = 0">
</a>
</div> </div>
<div class="metadata"> <div class="metadata">