Skip to content

Shorten latest prebuild timestamp on projects cards for better space usage #5398

@gtsiolis

Description

@gtsiolis

Problem to solve

Project cards currently link to the latest prebuild but using a verbose mode for surfacing the timestamp like 23 minutes ago. This can cause elements to overflow when branch name is long or viewing on a smaller viewport.

Cc @laushinka @jankeromnes because of the relevant discussion (internal) from yesterday's livestream.

Proposal

For better space usage we could shorten the timestamp information like the following. See relevant comment from #5098.

BEFORE AFTER
19 hours ago 19h
23 minutes ago 23m
5 days ago 5d

See also moment/moment#2781 linked from the relevant discussion (internal). Cc @laushinka

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions