https://bugs.kde.org/show_bug.cgi?id=449544

Felix Ernst <felixer...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/kio/-/commit/c70e10e
                   |                            |dfc6ac20fc5d7a092fd87894b09
                   |                            |dd91ab
             Status|REPORTED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Felix Ernst <felixer...@kde.org> ---
Git commit c70e10edfc6ac20fc5d7a092fd87894b09dd91ab by Felix Ernst.
Committed on 13/10/2024 at 16:00.
Pushed by felixernst into branch 'master'.

[KFilePlacesView] Improve automatic resize heuristic

The old logic always chose the smallest possible icon size if any of
the items in the places view had a name that is too long to fit into
the view. This meant that in most typical scenarios, in which a user
has at least one device with a long name, the smallest possible icon
size was chosen.

This commit makes it so the widest 20 percent of texts are ignored
if there is a big difference in width between them and the widest
of the other 80 percent. This way, bigger icon sizes are chosen if
everything fits aside from the text of these few unusually wide names.

The basic advantage of this change is that users have way taller
click targets for the items on the places panel when there is enough
space. If users do not like this, they were never supposed to use the
automatic resize behaviour to begin with, and they can set a fixed
size.

M  +30   -4    src/filewidgets/kfileplacesview.cpp

https://invent.kde.org/frameworks/kio/-/commit/c70e10edfc6ac20fc5d7a092fd87894b09dd91ab

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to