Commit dec75f0d authored by Nate Graham's avatar Nate Graham 💤
Browse files

[folder view] Fix display on not-skinny vertical panels

Folder view has some logic to switch between its compact and full
representations for vertical panels, but it is faulty, and causes the
switch to happen at approximately 50px width. At this width, the display
is completely unusable as the text is elided away into nothingness.

This commit remedies the situation by imposing a more sane minimum width
based on gridUnit. With the default 10pt font, the minimum thickness is
now 144px, which leaves enough room for the labels to be at least
partially visible. At lower panel widths, the applet displays its compact
representation.

BUG: 406806
FIXED-IN: 5.18.7
parent 893aa4d8
......@@ -52,9 +52,9 @@ FolderViewDropArea {
Layout.maximumHeight: isPopup ? preferredHeight(false) : -1
function switchSize() {
// Support expanding into the full representation only on vertical panels.
// Support expanding into the full representation on very thick vertical panels.
if (isPopup && plasmoid.formFactor === PlasmaCore.Types.Vertical) {
return units.iconSizeHints.panel;
return PlasmaCore.Units.gridUnit * 8;
}
return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment