From 1fba7387b38fb0cfc67468388ef043f35095257e Mon Sep 17 00:00:00 2001 From: Thang Pham Date: Sun, 25 Feb 2024 10:24:47 -0500 Subject: [PATCH] use liked icon's length to configure the column's width (#380) Resolves #356 --- spotify_player/src/ui/page.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotify_player/src/ui/page.rs b/spotify_player/src/ui/page.rs index 18051efa..d7338b96 100644 --- a/spotify_player/src/ui/page.rs +++ b/spotify_player/src/ui/page.rs @@ -705,7 +705,7 @@ fn render_track_table( let track_table = Table::new( rows, [ - Constraint::Length(1), + Constraint::Length(state.configs.app_config.liked_icon.chars().count() as u16), Constraint::Length(4), Constraint::Fill(4), Constraint::Fill(3),