[dolphin] [Bug 420870] New: Long tabs get too much of the space in tab bar
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Fri May 1 20:04:17 BST 2020
https://bugs.kde.org/show_bug.cgi?id=420870
Bug ID: 420870
Summary: Long tabs get too much of the space in tab bar
Product: dolphin
Version: unspecified
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: bars: location
Assignee: dolphin-bugs-null at kde.org
Reporter: sdfjsfjaei-hans at yahoo.de
CC: kfm-devel at kde.org
Target Milestone: ---
Created attachment 128072
--> https://bugs.kde.org/attachment.cgi?id=128072&action=edit
window with multiple tabs open (thin window)
SUMMARY
While it totally makes sense that tabs with a lot of text get a lot of the
space, there should be some limit, because the shorter the tab text, the more
important each letter is for recognizing which folder that tab corresponds to.
STEPS TO REPRODUCE
1. on command line: cd /tmp && mkdir test && cd test && mkdir "2019 - normal
folder name" && mkdir "relatively short folder name" && mkdir "this is a very
long folder name that dominates all other tabs which seems a bit suboptimal
since the user probably would be okay with just the beginning"
This is what the directory tree looks like:
/tmp/test
├── 2019 - normal folder name
├── relatively short folder name
└── this is a very long folder name that dominates all other tabs which seems a
bit suboptimal since the user probably would be okay with just the beginning
2. Enter /tmp/test in Dolphin and open the tabs in Dolphin
OBSERVED RESULT
The tab for the folder with the very long name takes almost all the space of
the tab bar. Resizing the window gives the tab that's already pretty long even
more space. (See attachments.)
EXPECTED RESULT
For the tabs with little text to get enough space to make them (more) readable.
I actually had the problem where a long folder name was making it hard to
discern what the other tabs contain.
I've attached a Python file to illustrate how that algorithm could work.
(Basically it adds the length of each tab text to a list. Then it brings each
length in that list nearer to the average of said list.)
This is the output:
# length name
25: 2019 - normal folder name
28: relatively short folder name
152: this is a very long folder name that dominates all other tabs which
seems a bit suboptimal since the user probably would be okay with just the
beginning
average tab length: 68.33333333333333
43.78: 2019 - normal folder name
44.27: relatively short folder name
82.00: this is a very long folder name that dominates all other tabs which
seems a bit suboptimal since the user probably would be okay with just the
beginning
Simulate tab bar (I know it's a lot more complex in reality)
------------------------------------------------------------
| 2019 - normal fold… | relatively short f… | this is a very long folder name
t… |
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 18.04
KDE Plasma Version: 5.12.9
KDE Frameworks Version: 5.47.0
Qt Version: 5.9.5
It would be cool if someone could test if this is still an issue in the latest
version. (following the above steps to reproduce).
Thanks for KDE =)
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the kfm-devel
mailing list