chore(release): v0.1.4 - 1:1 SyncLyrics, scroll isolation, object-fit cover, Concerts icon, friends' likes & duplicate-title albums

This commit is contained in:
marwy 2026-11-27 18:11:16 +03:00
parent 0b2561503f
commit f063382410
21 changed files with 1287 additions and 288 deletions

View file

@ -352,7 +352,7 @@ pub fn render_collection(
cx += card_w + gap;
}
for pl in playlists.iter().take(24) {
for (idx, pl) in playlists.iter().take(60).enumerate() {
let cr = Rect::from_xywh(cx, y, card_w, card_h);
if cr.right() >= row_vp.left() - 24.0 && cr.left() <= row_vp.right() + 24.0 {
let sub = t.count_tracks(pl.track_count as usize);
@ -363,14 +363,17 @@ pub fn render_collection(
ctx,
pal,
covers,
WidgetId::from_pair("col_ov_pl", format!("{}_{}", pl.owner_uid, pl.kind)),
WidgetId::from_pair(
"col_ov_pl",
(idx, format!("{}_{}", pl.owner_uid, pl.kind)),
),
cr,
&pl.title,
&sub,
pl.cover_uri.as_deref(),
&format!("upl_{}_{}", pl.owner_uid, pl.kind),
false,
false,
pl.kind == "3" && pl.cover_uri.is_none(),
);
if let Some(pos) = m.right_clicked_pos {
shell.open_entity_menu(EntityContextMenuState {
@ -407,7 +410,7 @@ pub fn render_collection(
ctx.end_scroll_h(
h_id,
pal,
(playlists.len().min(24) + 1) as f32 * (card_w + gap),
(playlists.len().min(60) + 1) as f32 * (card_w + gap),
false,
);
y += card_h + 26.0;
@ -454,9 +457,10 @@ pub fn render_collection(
let sx = ctx.begin_scroll_h(h_id, row_vp, 0.0);
let mut cx = x - sx;
for alb in albums.iter().take(24) {
for (idx, alb) in albums.iter().take(60).enumerate() {
let cr = Rect::from_xywh(cx, y, card_w, card_h);
if cr.right() >= row_vp.left() - 24.0 && cr.left() <= row_vp.right() + 24.0 {
let alb_title = alb.full_title();
let sub = alb
.artists
.first()
@ -466,9 +470,9 @@ pub fn render_collection(
ctx,
pal,
covers,
WidgetId::from_pair("col_ov_alb", &alb.id),
WidgetId::from_pair("col_ov_alb", (idx, &alb.id)),
cr,
&alb.title,
&alb_title,
sub,
alb.cover_uri.as_deref(),
&format!("alb_{}", alb.id),
@ -479,7 +483,7 @@ pub fn render_collection(
shell.open_entity_menu(EntityContextMenuState {
kind: "album".into(),
id: alb.id.clone(),
title: alb.title.clone(),
title: alb_title.clone(),
subtitle: t.album().into(),
cover_uri: alb.cover_uri.clone(),
owner_uid: None,
@ -491,12 +495,12 @@ pub fn render_collection(
} else if m.play_clicked {
actions.push(AppAction::PlayAlbum {
id: alb.id.clone(),
title: alb.title.clone(),
title: alb_title,
});
} else if m.clicked {
actions.push(AppAction::Navigate(Route::Album {
id: alb.id.clone(),
title: alb.title.clone(),
title: alb_title,
}));
}
}
@ -505,7 +509,7 @@ pub fn render_collection(
ctx.end_scroll_h(
h_id,
pal,
albums.len().min(24) as f32 * (card_w + gap),
albums.len().min(60) as f32 * (card_w + gap),
false,
);
y += card_h + 26.0;
@ -793,7 +797,7 @@ pub fn render_collection(
continue;
}
let sub = t.count_tracks(pl.track_count as usize);
let wid = WidgetId::from_pair("col_pl", format!("{}_{}", pl.owner_uid, pl.kind));
let wid = WidgetId::from_pair("col_pl", (i, format!("{}_{}", pl.owner_uid, pl.kind)));
let m = media_card(
ctx,
pal,
@ -805,7 +809,7 @@ pub fn render_collection(
pl.cover_uri.as_deref(),
&format!("upl_{}_{}", pl.owner_uid, pl.kind),
false,
false,
pl.kind == "3" && pl.cover_uri.is_none(),
);
// Own playlists (not Liked kind=3) get quick Rename & Delete action icons on hover!
@ -928,6 +932,7 @@ pub fn render_collection(
card_h,
);
if cr.bottom() >= rect.top() - 40.0 && cr.top() <= rect.bottom() + 40.0 {
let alb_title = alb.full_title();
let sub = alb
.artists
.first()
@ -937,9 +942,9 @@ pub fn render_collection(
ctx,
pal,
covers,
WidgetId::from_pair("col_alb", &alb.id),
WidgetId::from_pair("col_alb", (idx, &alb.id)),
cr,
&alb.title,
&alb_title,
sub,
alb.cover_uri.as_deref(),
&format!("alb_{}", alb.id),
@ -950,7 +955,7 @@ pub fn render_collection(
shell.open_entity_menu(EntityContextMenuState {
kind: "album".into(),
id: alb.id.clone(),
title: alb.title.clone(),
title: alb_title.clone(),
subtitle: t.album().into(),
cover_uri: alb.cover_uri.clone(),
owner_uid: None,
@ -962,12 +967,12 @@ pub fn render_collection(
} else if m.play_clicked {
actions.push(AppAction::PlayAlbum {
id: alb.id.clone(),
title: alb.title.clone(),
title: alb_title,
});
} else if m.clicked {
actions.push(AppAction::Navigate(Route::Album {
id: alb.id.clone(),
title: alb.title.clone(),
title: alb_title,
}));
}
}