Skip to content

CmdPal: tags with just an icon aren't centered #41828

@zadjii-msft

Description

@zadjii-msft

Microsoft PowerToys version

0.94 / main

Installation method

Other (please specify in "Steps to Reproduce")

Area(s) with issue?

Command Palette

Steps to reproduce

Make a Tag that just has an icon set

    private static readonly IconInfo RobotIcon = new("\uE99A");
    private static readonly Tag RobotTag = new() { Icon = RobotIcon };

✔️ Expected Behavior

icon is centered

❌ Actual Behavior

Image

Additional Information

We're always sticking a margin on the icon, to the left.
But we don't need the spacing if there's no icon (or no text)

Other Software

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugSomething isn't workingNeeds-TriageFor issues raised to be triaged and prioritized by internal Microsoft teamsProduct-Command PaletteRefers to the Command Palette utility

    Type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions