Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Zero padding #1332

Description

@memeplex

Specially for the cpu module that tends to be below 10% and even with :2:3 looks inconsistent side-to-side other modules:

image

Here, the spacing between the icon and the percentage appears a bit like the margin between modules so it's not only unaesthetic but also confusing. The alternative of not reserving space for a second digit is distracting when the glyphs are frequently moving back and forth.

The real solution is to zero pad that percentage.

Then the real solution is to support printf-style format strings but zero-padding is the most important use case AFAICS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions