diff --git a/apps/web/src/app/auth/settings/webauthn-login-settings/webauthn-login-settings.component.html b/apps/web/src/app/auth/settings/webauthn-login-settings/webauthn-login-settings.component.html index b6a14fe72d..23abe02665 100644 --- a/apps/web/src/app/auth/settings/webauthn-login-settings/webauthn-login-settings.component.html +++ b/apps/web/src/app/auth/settings/webauthn-login-settings/webauthn-login-settings.component.html @@ -1,10 +1,10 @@

{{ "loginWithPasskey" | i18n }} - {{ + {{ "on" | i18n }} - {{ + {{ "off" | i18n }} diff --git a/libs/components/src/badge/badge.directive.ts b/libs/components/src/badge/badge.directive.ts index d614734afd..14dc96edd5 100644 --- a/libs/components/src/badge/badge.directive.ts +++ b/libs/components/src/badge/badge.directive.ts @@ -20,19 +20,6 @@ const hoverStyles: Record = { info: ["hover:tw-bg-info-700"], }; -const textAlignment = { - baseline: "tw-align-baseline", - sub: "tw-align-sub", - super: "tw-align-super", - textTop: "tw-align-text-top", - textBottom: "tw-align-text-bottom", - middle: "tw-align-middle", - top: "tw-align-top", - bottom: "tw-align-bottom", -}; - -type TextAlignment = keyof typeof textAlignment; - @Directive({ selector: "span[bitBadge], a[bitBadge], button[bitBadge]", }) @@ -44,7 +31,7 @@ export class BadgeDirective { "tw-px-1.5", "tw-font-bold", "tw-text-center", - textAlignment[this.align], + "tw-align-text-top", "!tw-text-contrast", "tw-rounded", "tw-border-none", @@ -67,7 +54,6 @@ export class BadgeDirective { @Input() badgeType: BadgeTypes = "primary"; @Input() truncate = true; - @Input() align: TextAlignment = "textTop"; private hasHoverEffects = false; diff --git a/libs/components/src/badge/badge.stories.ts b/libs/components/src/badge/badge.stories.ts index 6a05d8f2f2..5912250e0e 100644 --- a/libs/components/src/badge/badge.stories.ts +++ b/libs/components/src/badge/badge.stories.ts @@ -15,7 +15,6 @@ export default { args: { badgeType: "primary", truncate: false, - align: "textTop", }, parameters: { design: {