Bug 450632 - Date does not wrap when widget is on the desktop
Summary: Date does not wrap when widget is on the desktop
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock widget (show other bugs)
Version: 5.24.1
Platform: Neon Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-21 03:33 UTC by Steven
Modified: 2022-02-24 02:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.24.3
Sentry Crash Report:


Attachments
Digital Clock default size with long date (11.23 KB, image/png)
2022-02-23 18:25 UTC, Steven
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steven 2022-02-21 03:33:27 UTC
SUMMARY
Digital Clock  Date format: Long Date produces text too small to read

STEPS TO REPRODUCE
1.  Add Digital Clock widget to your desktop.
2.  Right click Digital clock to see pop-up menu.
3.  Select  Configure Digital Clock
4. On Appearance page, select Long Date Date format.
5. Click OK or Apply.
Observe the long date is too small to read.  Why isn't it as big as time?

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-02-21 23:26:03 UTC
Looks like when the applet is on the desktop, the date string doesn't wrap. It probably should.
Comment 2 Steven 2022-02-22 01:32:46 UTC
My digital clock widget is at the top center of my screen.  No wrapping is necessary.  When I configure the widget for long date format, the long date is too tiny.  I would like it to be the same size as the clock digits.
Comment 3 Nate Graham 2022-02-22 17:28:10 UTC
When the date is displayed below the time, using a smaller font size is intentional, to de-emphasize it compared to the time. So that's gotta stay the same.

However it shouldn't be that much smaller; the bug I identified is that when it can't wrap and there's not enough width, it becomes quite small. But when there is a lot of space, it shouldn't be too much smaller.

Can you attach a screenshot that shows the problem on your setup?
Comment 4 Steven 2022-02-23 18:08:45 UTC
I'm so sorry for this bug report.  I didn't realize I could simply resize the widget on the Desktop and get a larger date.
Comment 5 Nate Graham 2022-02-23 18:12:29 UTC
You can indeed. :) Nonetheless, the date should wrap. I'll see about fixing it.
Comment 6 Steven 2022-02-23 18:25:43 UTC
Created attachment 147077 [details]
Digital Clock default size with long date

As you can see from this .png file, the long date is quite small if user doesn't resize the widget.
I am willling to resize the widget to make long date readable on my screen.
Comment 7 Bug Janitor Service 2022-02-23 21:39:14 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1486
Comment 8 Nate Graham 2022-02-24 02:37:25 UTC
Git commit 02af6bd9aef24e8acdb17bcb53105e7c11d0070c by Nate Graham.
Committed on 24/02/2022 at 01:11.
Pushed by ngraham into branch 'master'.

applets/digital-clock: Word-wrap date string for desktop representation

Unlike when the clock is in a panel, there is plenty of space when it is
on the desktop. This means that we can safely let the date string word
wrap rather than shrink.
FIXED-IN: 5.24.3

M  +1    -0    applets/digital-clock/package/contents/ui/DigitalClock.qml

https://invent.kde.org/plasma/plasma-workspace/commit/02af6bd9aef24e8acdb17bcb53105e7c11d0070c
Comment 9 Nate Graham 2022-02-24 02:37:52 UTC
Git commit 71193cd23eb48af8db7a548a2a23917ced308864 by Nate Graham.
Committed on 24/02/2022 at 02:37.
Pushed by ngraham into branch 'Plasma/5.24'.

applets/digital-clock: Word-wrap date string for desktop representation

Unlike when the clock is in a panel, there is plenty of space when it is
on the desktop. This means that we can safely let the date string word
wrap rather than shrink.
FIXED-IN: 5.24.3


(cherry picked from commit 02af6bd9aef24e8acdb17bcb53105e7c11d0070c)

M  +1    -0    applets/digital-clock/package/contents/ui/DigitalClock.qml

https://invent.kde.org/plasma/plasma-workspace/commit/71193cd23eb48af8db7a548a2a23917ced308864