feat: add add button
This commit is contained in:
1 parent
28984e3ce6
commit
cb050dbc44
2 files changed
+31
No files matched your search
@@ -150,3 +150,29 @@ audio { width: 100%; }
|
||||
background: transparent;
|
||||
border: 1px dashed var(--muted);
|
||||
}
|
||||
|
||||
td.toggle {
|
||||
width: 1.5em;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
user-select: none;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
td.toggle a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background-color: var(--accent);
|
||||
color: var(--accent-text);
|
||||
text-decoration: none;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
td.toggle a:hover {
|
||||
filter: brightness(1.1); /* optional: Hover-Effekt */
|
||||
}
|
||||
@@ -14,6 +14,7 @@
|
||||
<div class="table-wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<th></th>
|
||||
<th>Name</th>
|
||||
<th>Artist</th>
|
||||
<th>ID</th>
|
||||
@@ -23,6 +24,9 @@
|
||||
<tbody>
|
||||
{% for s in songs %}
|
||||
<tr>
|
||||
<td class="toggle">
|
||||
<a>+</a>
|
||||
</td>
|
||||
<td>{{ s.name }}</td>
|
||||
<td>{{ s.artist }}</td>
|
||||
<td>{{ s.id }}</td>
|
||||
@@ -35,6 +39,7 @@
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>{{ e.bitrate }} ({{ (e.bitrate / s.original.bitrate * 100) | round(1) }}%)</td>
|
||||
<td>{{ e.sampling_rate }} ({{ (e.sampling_rate / s.original.sampling_rate * 100) | round(1) }}%)</td>
|
||||
</tr>
|
||||
|
||||
Reference in new issue
Block a user