pop-os / cosmic-applets

WIP applets for cosmic-panel
GNU General Public License v3.0
216 stars 89 forks source link

[bug] Make clock width constant when seconds are visible #684

Closed vancha closed 1 month ago

vancha commented 1 month ago

Cosmic-applets version: 0.1.0~1728878230~22.04~7b005f9

Specific applet that this is regarding (if applicable): 'Date, Time & Calendar'

Issue/Bug description: The issue I seem to be having with the cosmic clocks is that when I have enabled the seconds for the clock widget, other applet icons in the panel shift when the clock ticks. E.g, when the time is 11:11:11 the width of the clock widget is smaller than when it' s 00:00:00. So with every second, the applet icons shift around

Steps to reproduce: click the Date & time applet, then select settings. Select "Date & Time", and check the "Show seconds" setting. If you have multiple applet icons in your panel you should see them shift around (try adding multiple applets to the end segment in your panel, and make the clock the rightmost one).

Expected behavior: I think the expected behavior would be that regardless of the exact time the applet displays, the width should be constant. Changes in the time should not cause the other applet icons to shift.

wiiznokes commented 1 month ago

Same of https://github.com/pop-os/cosmic-applets/issues/635. This is indeed an annoying one, i worked around it by moving the applet to the right of the left part of the panel. It should be easy to fix with the recent libcosmic change concerning font :thinking:

vancha commented 1 month ago

Apologies for creating a duplicate issue, that is indeed exactly what I am referring to too! Ill try your workaround, thanks ;)

leviport commented 1 month ago

No worries. Closing as a duplicate of #635