Merge branch 'pr/611' into integration/pr-review-smoke-2026-07-13
This commit is contained in:
1 file changed
+20
-7
@@ -407,14 +407,27 @@ export component AlbumCard inherits Rectangle {
|
|||||||
spacing: 2px;
|
spacing: 2px;
|
||||||
horizontal-stretch: 1;
|
horizontal-stretch: 1;
|
||||||
|
|
||||||
Text {
|
// Album title, clickable with the same target as the artwork
|
||||||
text: root.album.title;
|
// click: opens the album (or toggles selection in select-mode).
|
||||||
|
title-area := TouchArea {
|
||||||
height: 20px;
|
height: 20px;
|
||||||
color: Theme.text-primary;
|
mouse-cursor: pointer;
|
||||||
font-size: Typography.body - 2px;
|
clicked => {
|
||||||
font-weight: Typography.medium;
|
if (root.select-mode) {
|
||||||
vertical-alignment: center;
|
root.media-action("album", root.album.id, "toggle-select");
|
||||||
overflow: elide;
|
} else {
|
||||||
|
root.clicked(root.album.id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Text {
|
||||||
|
width: 100%;
|
||||||
|
text: root.album.title;
|
||||||
|
color: title-area.has-hover ? Theme.accent : Theme.text-primary;
|
||||||
|
font-size: Typography.body - 2px;
|
||||||
|
font-weight: Typography.medium;
|
||||||
|
vertical-alignment: center;
|
||||||
|
overflow: elide;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Artist name — clickable when an artist id is known,
|
// Artist name — clickable when an artist id is known,
|
||||||
// navigating to the artist page (1:1 with Tauri).
|
// navigating to the artist page (1:1 with Tauri).
|
||||||
|
|||||||
Reference in new issue
Block a user