resonance icon indicating copy to clipboard operation
resonance copied to clipboard

Artist album catalogue flickering bug

Open Protrikk opened this issue 1 year ago • 5 comments

What I assume is happening is whenever a name of a track in an album is long enough and hovered over, window tries to realign the layout to make space for the additional buttons that appear on the sides of the track. It's immiedietly being not hovered over again and realigned resulting in a shimmering loop.

Nagranie ekranu z 2023-04-07 20-07-52.webm

Protrikk avatar Apr 07 '23 18:04 Protrikk

It just changes the layout in the video, but it flickers around in reality

Protrikk avatar Apr 07 '23 18:04 Protrikk

This is because the album card is a flowbox like I mentioned in (https://github.com/nate-xyz/resonance/issues/22#issuecomment-1500681500), and the track button resizes on hover due to the label width + the play icon, which changes the overall width of the flowbox child. Unfortunately the fix I implemented depends on specific font width, so I need to redo it for the GNOME default font I think

nate-xyz avatar Apr 07 '23 22:04 nate-xyz

Doing something for a specific font and size doesn't sound like the right solution, it would brake again even if someone enables the big text option. I think it'd be better to have the buttons which show up when hovered be overlayed on top instead

Protrikk avatar Apr 07 '23 22:04 Protrikk

Another example of this behavior. It really hurts my eyes when it happens. Warning: flashing images.

Screencast from 2023-04-08 00.30.07.webm

LukaszH77 avatar Apr 07 '23 22:04 LukaszH77

Doing something for a specific font and size doesn't sound like the right solution, it would brake again even if someone enables the big text option. I think it'd be better to have the buttons which show up when hovered be overlayed on top instead

yeah that's a good point, I think I'll switch it to an overlay.

nate-xyz avatar Apr 07 '23 22:04 nate-xyz