"Date" in Ubuntu 18.04 Lock Screen is not always center aligned when "Tweaks-->Top Bar-->Seconds" is set to be "True".

Bug #1840265 reported by SunBear
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
New
Undecided
Unassigned

Bug Description

Issue:

In Ubuntu 18.04, there appears to be an issue with the alignment of the shown "Date" in the locked screen, i.e. `.screen-shield-clock-date{}` in `/usr/share/gnome-shell/theme/ubuntu.css`. It sometimes appear center-aligned and sometimes left-aligned w.r.t `.screen-shield-clock{}`. It seems that `.screen-shield-clock-date{}` is a child of

    .screen-shield-clock {
      color: white;
      text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.6);
      font-weight: bold;
      text-align: center;
      padding-bottom: 1.5em; }

which already contains the `text-align: center` argument to require center alignment.

I have tried adding `margin: auto; width: 100%;` in both `.screen-shield-clock{}` and `.screen-shield-clock-date{}`, and also adding `text-align: center` in `.screen-shield-clock-date{}` but these approaches don't seem to work?

How can a user fix this date alignment issue or is this a bug with gdm3?

**System information:**

$ lsb_release -rd
Description: Ubuntu 18.04.3 LTS
Release: 18.04

$ dpkg -l | grep gdm
ii gdm3 3.28.3-0ubuntu18.04.4 amd64 GNOME Display Manager
ii gir1.2-gdm-1.0 3.28.3-0ubuntu18.04.4 amd64 GObject introspection data for the GNOME Display Manager
ii libgdm1 3.28.3-0ubuntu18.04.4 amd64 GNOME Display Manager (shared library)

$ apt-cache policy gdm3
gdm3:
  Installed: 3.28.3-0ubuntu18.04.4
  Candidate: 3.28.3-0ubuntu18.04.4
  Version table:
 *** 3.28.3-0ubuntu18.04.4 500
        500 http://sg.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
        100 /var/lib/dpkg/status
     3.28.0-0ubuntu1 500
        500 http://sg.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

$ apt-cache policy gir1.2-gdm-1.0
gir1.2-gdm-1.0:
  Installed: 3.28.3-0ubuntu18.04.4
  Candidate: 3.28.3-0ubuntu18.04.4
  Version table:
 *** 3.28.3-0ubuntu18.04.4 500
        500 http://sg.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
        100 /var/lib/dpkg/status
     3.28.0-0ubuntu1 500
        500 http://sg.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

$ apt-cache policy libgdm1
libgdm1:
  Installed: 3.28.3-0ubuntu18.04.4
  Candidate: 3.28.3-0ubuntu18.04.4
  Version table:
 *** 3.28.3-0ubuntu18.04.4 500
        500 http://sg.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
        100 /var/lib/dpkg/status
     3.28.0-0ubuntu1 500
        500 http://sg.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

Revision history for this message
SunBear (sunbear-c22) wrote :

I discovered the trigger for the misalignment, i.e. it occurs when `Tweaks-->Top Bar-->Seconds` is set to be `True`.

SunBear (sunbear-c22)
summary: - "Date" in Ubuntu 18.04 Lock Screen is not always center aligned.
+ "Date" in Ubuntu 18.04 Lock Screen is not always center aligned when
+ "Tweaks-->Top Bar-->Seconds" is set to be "True".
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Reassigned to gnome-shell, since that does all the rendering including the lock screen and clock.

affects: gdm3 (Ubuntu) → gnome-shell (Ubuntu)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 1553802, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.