mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
unlockDialog: Also center the time in 12h format
Since the time string uses a space to pad single-digit numbers, the centered label looks off-center. Fix this by applying the trim() function to get rid of whitespaces. The drawback of this approach is that the label will change position slightly when the time changes, but for the lockscreen that's okay. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6193 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3290>
This commit is contained in:
parent
aa51d56fa2
commit
ccdd46c0d9
1 changed files with 1 additions and 1 deletions
|
|
@ -366,7 +366,7 @@ class UnlockDialogClock extends St.BoxLayout {
|
|||
}
|
||||
|
||||
_updateClock() {
|
||||
this._time.text = this._wallClock.clock;
|
||||
this._time.text = this._wallClock.clock.trim();
|
||||
|
||||
let date = new Date();
|
||||
/* Translators: This is a time format for a date in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue