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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user