mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
* Fix form suffix not working without prefix * Use tailwind first/last to avoid hacky components
13 lines
324 B
TypeScript
13 lines
324 B
TypeScript
import { Directive, HostBinding, Input } from "@angular/core";
|
|
|
|
import { PrefixClasses } from "./prefix.directive";
|
|
|
|
@Directive({
|
|
selector: "[bitSuffix]",
|
|
})
|
|
export class BitSuffixDirective {
|
|
@HostBinding("class") @Input() get classList() {
|
|
return PrefixClasses.concat(["tw-border-l-0", "last:tw-rounded-r"]);
|
|
}
|
|
}
|