Bug 417405 - Long text does not elide but is cut off if panel is too narrow
Summary: Long text does not elide but is cut off if panel is too narrow
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: panels: information (show other bugs)
Version: 19.12.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-10 20:58 UTC by postix
Modified: 2020-11-18 05:28 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot. (140.58 KB, image/png)
2020-02-10 20:58 UTC, postix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2020-02-10 20:58:46 UTC
Created attachment 125831 [details]
Screenshot.

SUMMARY

If the panel width is made small enough it may happen that text which is too long just becomes clipped like in the screenshot. 



SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.1


ADDITIONAL INFORMATION
Scaling: 1.5
Comment 1 Nate Graham 2020-02-11 03:20:21 UTC
I can't see any clipped text in the left side of that screenshot. What are you referring to?
Comment 2 postix 2020-02-11 09:57:58 UTC
(In reply to Nate Graham from comment #1)
> I can't see any clipped text in the left side of that screenshot. What are
> you referring to?

Take a look at 
LibreOffice/6.4.03$Linux_{X86_64}
LibreOffice_pr{oject/}40$Build-3

Everything that's in the brackets {} got clipped in the left picture.
Comment 3 Nate Graham 2020-02-11 21:30:26 UTC
Ah, I see now.
Comment 4 Christoph Feck 2020-03-06 12:33:23 UTC
Should every line that is elided get a '...' marker?

Another alternative is to wrap everywhere, but that would cause new lines to start in the middle of words.
Comment 5 postix 2020-03-06 12:39:52 UTC
> Should every line that is elided get a '...' marker?
That'd be better than the current situation in my opinion.

(In reply to Christoph Feck from comment #4)
> Another alternative is to wrap everywhere, but that would cause new lines to
> start in the middle of words.

That could probably be indicated by

↪	8618	21AA	 	RIGHTWARDS ARROW WITH HOOK
↳	8627	21B3	 	DOWNWARDS ARROW WITH TIP RIGHTWARDS

but I'm not sure if this really helpful or makes it more clear.
Comment 6 Nate Graham 2020-03-06 17:51:15 UTC
(In reply to Christoph Feck from comment #4)
> Should every line that is elided get a '...' marker?
> 
> Another alternative is to wrap everywhere, but that would cause new lines to
> start in the middle of words.
QLabel wraps at word boundaries, not arbitrary locations. In fact, it cannot even be configured to do so even if you want it to! See https://bugreports.qt.io/browse/QTBUG-1276
Comment 7 Méven Car 2020-11-18 05:28:16 UTC
(In reply to Nate Graham from comment #6)
> (In reply to Christoph Feck from comment #4)
> > Should every line that is elided get a '...' marker?
> > 
> > Another alternative is to wrap everywhere, but that would cause new lines to
> > start in the middle of words.
> QLabel wraps at word boundaries, not arbitrary locations. In fact, it cannot
> even be configured to do so even if you want it to! See
> https://bugreports.qt.io/browse/QTBUG-1276

We have our own KSqueezedTextLabel that should be supporting this.