1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

[PS-960] Fix form input group suffix not working (#2947)

* Fix form suffix not working without prefix

* Use tailwind first/last to avoid hacky components
This commit is contained in:
Oscar Hinton
2022-06-23 20:24:26 +02:00
committed by GitHub
parent fcdf36a01c
commit 6e9b6f25a1
6 changed files with 10 additions and 33 deletions

View File

@@ -7,12 +7,6 @@ import { PrefixClasses } from "./prefix.directive";
})
export class BitSuffixDirective {
@HostBinding("class") @Input() get classList() {
return PrefixClasses.concat([
"tw-rounded-l-none",
"tw-border-l-0",
!this.last ? "tw-rounded-r-none" : "",
]).filter((c) => c != "");
return PrefixClasses.concat(["tw-border-l-0", "last:tw-rounded-r"]);
}
@Input() last = false;
}