1
0
mirror of https://github.com/bitwarden/browser synced 2025-01-12 18:34:54 +01:00

[PM-16102] Add min width on interactive badges (#12514)

This commit is contained in:
Victoria League 2024-12-23 12:08:52 -05:00 committed by GitHub
parent 23210f4a39
commit 395258d63e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,7 +65,7 @@ export class BadgeComponent implements FocusableElement {
"disabled:tw-cursor-not-allowed",
]
.concat(styles[this.variant])
.concat(this.hasHoverEffects ? hoverStyles[this.variant] : [])
.concat(this.hasHoverEffects ? [...hoverStyles[this.variant], "tw-min-w-10"] : [])
.concat(this.truncate ? this.maxWidthClass : []);
}
@HostBinding("attr.title") get titleAttr() {