qpixel icon indicating copy to clipboard operation
qpixel copied to clipboard

Keep timezone on same line as time

Open trichoplax opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. See also discussion on #1340. The user creation date shown on the user profile page (only visible on your own user profile page unless you are a moderator) wraps over two lines of text when the page width gets narrower (before it gets so narrow that the page switches to mobile view). At some widths this leads to the timezone showing on a different line to the time.

For example:

User since 2024-05-11 12:51:22
UTC

Describe the solution you'd like This could be fixed by using a non-breaking space between the time and the timezone, which would cause the time and timezone to stay together when the line breaks:

User since 2024-05-11
12:51:22 UTC

Additional context There may be other places where the time and timezone are split across 2 lines. If so, it could be useful to have a function that gives the datetime in the required format, rather than rewriting the same code in each of these places.

trichoplax avatar May 28 '24 12:05 trichoplax