Truncate long track titles in CoverPanel? #64

Closed
opened 2019-12-09 04:36:06 +01:00 by vredesbyrd · 7 comments
vredesbyrd commented 2019-12-09 04:36:06 +01:00 (Migrated from gitlab.com)

Hi, thank you for sharing this awesome mpd frontend. I made a pseudo-gui with rofi for quickly querying my music database and creating playlists, but occasionally find myself missing the ability to browse by album art. I stumbled on mcg and its exactly the type of tool I had in mind, and then some :)

I use mcg tiled half screen, and often enough tracks / albums with long titles will cause this:

Screenshot_from_2019-12-08_21-15-34

Perhaps a solution would be truncating and adding an ellipsis to track titles > x chars? I tried implementing a hackish solution myself, but did not get very far.

Thanks for your time.

Hi, thank you for sharing this awesome mpd frontend. I made a pseudo-gui with rofi for quickly querying my music database and creating playlists, but occasionally find myself missing the ability to browse by album art. I stumbled on mcg and its exactly the type of tool I had in mind, and then some :) I use mcg tiled half screen, and often enough tracks / albums with long titles will cause this: ![Screenshot_from_2019-12-08_21-15-34](/uploads/b84381051ed0927a0f73f1ea81b6f2d1/Screenshot_from_2019-12-08_21-15-34.png) Perhaps a solution would be truncating and adding an ellipsis to track titles `> x` chars? I tried implementing a hackish solution myself, but did not get very far. Thanks for your time.
coderkun commented 2020-03-21 22:49:28 +01:00 (Migrated from gitlab.com)

changed milestone to %10

changed milestone to %10
coderkun commented 2020-03-21 23:31:36 +01:00 (Migrated from gitlab.com)

mentioned in commit afc3c4a03f7e0ff4521da1e5a6b324bae646f694

mentioned in commit afc3c4a03f7e0ff4521da1e5a6b324bae646f694
coderkun commented 2020-03-21 23:34:43 +01:00 (Migrated from gitlab.com)

Hi @vredesbyrd, thanks for creating this issue. Instead of an ellipsis I configured a max width of 50 % for the scrolled window in the sidebar. If track names are longer, a horizonal scrollbar will appear. This way not only the described issue is handled but it will still be possible to read the full track name.

Would you mind checking out the feature branch and testing this change?

Hi @vredesbyrd, thanks for creating this issue. Instead of an ellipsis I configured a max width of 50 % for the scrolled window in the sidebar. If track names are longer, a horizonal scrollbar will appear. This way not only the described issue is handled but it will still be possible to read the full track name. Would you mind checking out the feature branch and testing this change?
coderkun commented 2020-03-21 23:38:12 +01:00 (Migrated from gitlab.com)

assigned to @coderkun

assigned to @coderkun
vredesbyrd commented 2020-03-22 02:22:56 +01:00 (Migrated from gitlab.com)

Would you mind checking out the feature branch and testing this change?

Just installed the relevant branch and it looks great! I like your solution a lot, elegant way to preserve the full track name :) Thanks much for the fix. I've been listening to a lot a music this last week and will probably continue to for the foreseeable future, if I run into any issues ill report back.

Thanks again.

Screenshot_from_2020-03-21_20-09-32

> Would you mind checking out the feature branch and testing this change? Just installed the relevant branch and it looks great! I like your solution a lot, elegant way to preserve the full track name :) Thanks much for the fix. I've been listening to a lot a music this last week and will probably continue to for the foreseeable future, if I run into any issues ill report back. Thanks again. ![Screenshot_from_2020-03-21_20-09-32](/uploads/5b2bb29c29cf70799e558ccefe02504a/Screenshot_from_2020-03-21_20-09-32.png)
coderkun commented 2020-03-22 11:11:14 +01:00 (Migrated from gitlab.com)

closed via commit 14d56452b6

closed via commit 14d56452b613f2fc7bd2ab4e180567733aa095fa
coderkun commented 2020-03-22 11:19:36 +01:00 (Migrated from gitlab.com)

mentioned in commit 14d56452b6

mentioned in commit 14d56452b613f2fc7bd2ab4e180567733aa095fa
Sign in to join this conversation.
No description provided.