1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-19 02:44:01 +00:00

add a slot for consumers to show user actions in anon layout header

This commit is contained in:
Bryan Cunningham
2025-12-03 10:55:32 -05:00
parent a6100d8a0e
commit c5bee5a341
4 changed files with 80 additions and 9 deletions

View File

@@ -5,13 +5,14 @@
'tw-min-h-full': clientType === 'browser' || clientType === 'desktop',
}"
>
<a
*ngIf="!hideLogo()"
[routerLink]="['/']"
class="tw-w-[200px] tw-block tw-mb-12 [&>*]:tw-align-top"
>
<bit-icon [icon]="logo" [ariaLabel]="'appLogoLabel' | i18n"></bit-icon>
</a>
<div class="tw-flex tw-justify-between tw-items-center tw-w-full tw-mb-12">
<a *ngIf="!hideLogo()" [routerLink]="['/']" class="tw-w-[200px] tw-block [&>*]:tw-align-top">
<bit-icon [icon]="logo" [ariaLabel]="'appLogoLabel' | i18n"></bit-icon>
</a>
<div class="tw-ms-auto">
<ng-content select="[slot=headerActions]"></ng-content>
</div>
</div>
<div class="tw-text-center tw-mb-4 sm:tw-mb-6 tw-mx-auto" [ngClass]="maxWidthClass">
@let iconInput = icon();