Bug 494736

Summary: Improve date display in thin vertical panels
Product: [Plasma] plasmashell Reporter: Fernando M. Muniz <fernandommuniz>
Component: Digital Clock widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: kde, nate
Priority: VLO    
Version First Reported In: 6.2.4   
Target Milestone: 1.0   
Platform: unspecified   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=440096
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The date is very small, needlessly so.
Edited zoom
Without Margin Separator.

Description Fernando M. Muniz 2024-10-14 11:34:51 UTC
Created attachment 174803 [details]
The date is very small, needlessly so.

There should be a setting that makes both clock and date enlarge to the last left and right pixel of the vertical panel.
Comment 1 David Edmundson 2024-10-16 16:08:30 UTC

*** This bug has been marked as a duplicate of bug 440096 ***
Comment 2 Nate Graham 2024-10-16 20:42:58 UTC
So the issue here is that your date string doesn't contain any spaces in it, so the current algorithm treats it as a single word and doesn't wrap it.

Even if it did... would you want that? Typically dates shown in that format don't ever get wrapped, it would be pretty weird. Can you describe what you do expect here for a date string in that format? Or would you expect it to automatically switch to a different format more suitable for being displayed on multiple lines?
Comment 3 Fernando M. Muniz 2024-10-16 20:55:22 UTC
Created attachment 174913 [details]
Edited zoom

Something like this; 50 pixels wide on 50 pixels wide panel.
Comment 4 Nate Graham 2024-10-16 20:59:39 UTC
Ok, so you can already do that right now by moving your digital clock so it's not in between two Margins Separators widgets on the panel.

Other than that, how would you like this fixed?
Comment 5 Fernando M. Muniz 2024-10-16 21:08:56 UTC
(In reply to Nate Graham from comment #4)
> Ok, so you can already do that right now by moving your digital clock so
> it's not in between two Margins Separators widgets on the panel.
> 
> Other than that, how would you like this fixed?

I want the clock to be there just like the edit, without affecting anything else.
Can I Ctrl+Z during edit mode if it doesn't look like what I want? (If not, I'll have a new bug to file)
Comment 6 Nate Graham 2024-10-16 21:25:28 UTC
Removing widgets is not Ctrl+Z'able, no. It is undoable via the "Undo" button in the notification that appears though.
Comment 7 Fernando M. Muniz 2024-10-16 21:32:17 UTC
Created attachment 174915 [details]
Without Margin Separator.

I removed it, it's slightly better, but not like the edit.
Comment 8 Nate Graham 2024-10-16 21:36:59 UTC
Yes, the panel itself has some inner margins that widgets can't exceed. So I'm afraid it's not going to be possible to make the tech literally touch the edges of the panel like your mockup indicates.

I think a different approach is needed here. Perhaps on vertical panels, the default data format can switch to something that looks good with internal spaces, so it can wrap nicely.
Comment 9 NW 2024-12-15 12:47:34 UTC
(In reply to Nate Graham from comment #8)
> Yes, the panel itself has some inner margins that widgets can't exceed. So
> I'm afraid it's not going to be possible to make the tech literally touch
> the edges of the panel like your mockup indicates.

Submitted an issue report for it: https://bugs.kde.org/show_bug.cgi?id=497503