Bug 454391 - Discover package list title has no top padding in compact/mobile view
Summary: Discover package list title has no top padding in compact/mobile view
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.24.90
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-25 12:15 UTC by Mateus Melchiades
Modified: 2023-01-12 18:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.27
Sentry Crash Report:


Attachments
Package titles in the middle column have no top padding (498.08 KB, image/png)
2022-05-25 12:15 UTC, Mateus Melchiades
Details
Packages list in Noto Sans 5pt (53.42 KB, image/png)
2022-05-25 17:55 UTC, Mateus Melchiades
Details
How to reproduce the bug (1.12 MB, video/mp4)
2022-05-25 19:59 UTC, guimarcalsilva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mateus Melchiades 2022-05-25 12:15:12 UTC
Created attachment 149205 [details]
Package titles in the middle column have no top padding

SUMMARY
When in three column mode (categories, package list, package info), the title of the packages in the list don't have any top padding, which makes it inconsistent with the rest of the UI.


STEPS TO REPRODUCE
1. Open discover
2. Select a package
3. Package titles in the middle column will have no padding

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Kionite 36
KDE Plasma Version: 5.24.90
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.3
Comment 1 Nate Graham 2022-05-25 15:38:00 UTC
What font and font size are you using? Cannot reproduce with both Noto Sans 10 (the default) or Noto Sans 11 with Discover in either mobile or 3-column/widescreen view.
Comment 2 Mateus Melchiades 2022-05-25 17:52:23 UTC
(In reply to Nate Graham from comment #1)
> What font and font size are you using? Cannot reproduce with both Noto Sans
> 10 (the default) or Noto Sans 11 with Discover in either mobile or
> 3-column/widescreen view.

I'm using the default font as well (Noto Sans 10). Changing the font size to something else fixes the issue; it seems to be only 10pt that's causing the glitch.
 
I also tried changing the scaling factor back to 100% (from 125%) but the problem still persists.
Comment 3 Mateus Melchiades 2022-05-25 17:55:32 UTC
Created attachment 149217 [details]
Packages list in Noto Sans 5pt

I now changed the font size to something very small (5pt) and it gets even weirder.
Comment 4 guimarcalsilva 2022-05-25 19:57:06 UTC
(In reply to Nate Graham from comment #1)
> What font and font size are you using? Cannot reproduce with both Noto Sans
> 10 (the default) or Noto Sans 11 with Discover in either mobile or
> 3-column/widescreen view.

I can confirm this bug happens.

It's easy to reproduce it if you resize the window on the Home page so it switches to the mobile layout, but it doesn't happen if Discover already opens in the mobile mode. Make sure to open Discover with a large window, then resize it horizontally until it switches its layout, then you'll see the bug. If you click on the search button at the bottom and back to the home button, the bug disappears and does not happen again until restarting Discover.

I'm using Plasma on Wayland with a 1920x1080 screen at 100% scale and the default Nono Sans 10pt.
Comment 5 guimarcalsilva 2022-05-25 19:59:11 UTC
Created attachment 149219 [details]
How to reproduce the bug

This is how the bug can be reproduced
Comment 6 Mateus Melchiades 2022-05-25 20:03:43 UTC
(In reply to guimarcalsilva from comment #4)
> (In reply to Nate Graham from comment #1)
> > What font and font size are you using? Cannot reproduce with both Noto Sans
> > 10 (the default) or Noto Sans 11 with Discover in either mobile or
> > 3-column/widescreen view.
> 
> I can confirm this bug happens.
> 
> It's easy to reproduce it if you resize the window on the Home page so it
> switches to the mobile layout, but it doesn't happen if Discover already
> opens in the mobile mode. Make sure to open Discover with a large window,
> then resize it horizontally until it switches its layout, then you'll see
> the bug. If you click on the search button at the bottom and back to the
> home button, the bug disappears and does not happen again until restarting
> Discover.
> 
> I'm using Plasma on Wayland with a 1920x1080 screen at 100% scale and the
> default Nono Sans 10pt.

Can confirm that opening Discover, shrinking to mobile size, pressing search then home and resizing so it becomes desktop-sized again "fixes" the problem until Discover is restarted. Should have mentioned in the original report that I'm using a 27" 4K monitor. 

Maybe it has something to do with the way it draws elements in desktop mode compared to mobile.
Comment 7 Nate Graham 2023-01-12 18:47:19 UTC
Fixed with layout changes in 5.27.