1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 06:13:38 +00:00

[EC-670] Update Members tab to support flex wrap (#4003)

Use tailwind classes to style the Members page header so that it supports wrapping the controls to a new line should they exceed the width of the container.
This commit is contained in:
Shane Melton
2022-11-08 12:44:17 -08:00
committed by GitHub
parent 618253fb14
commit 30f72825d7

View File

@@ -1,6 +1,8 @@
<div class="page-header d-flex"> <div
<h1>{{ "members" | i18n }}</h1> class="-tw-mt-2 tw-mb-2 tw-flex tw-flex-wrap tw-border-0 tw-border-b tw-border-solid tw-border-secondary-300 tw-pb-2.5"
<div class="ml-auto d-flex"> >
<h1 class="tw-mt-2 tw-mb-0 tw-grow tw-pr-3">{{ "members" | i18n }}</h1>
<div class="tw-mt-2 tw-flex tw-justify-start tw-space-x-3">
<div class="btn-group btn-group-sm" role="group"> <div class="btn-group btn-group-sm" role="group">
<button <button
type="button" type="button"
@@ -39,7 +41,7 @@
<span bitBadge badgeType="info" *ngIf="revokedCount">{{ revokedCount }}</span> <span bitBadge badgeType="info" *ngIf="revokedCount">{{ revokedCount }}</span>
</button> </button>
</div> </div>
<div class="ml-3"> <div class="tw-w-44">
<label class="sr-only" for="search">{{ "search" | i18n }}</label> <label class="sr-only" for="search">{{ "search" | i18n }}</label>
<input <input
type="search" type="search"
@@ -49,7 +51,7 @@
[(ngModel)]="searchText" [(ngModel)]="searchText"
/> />
</div> </div>
<div class="dropdown ml-3" appListDropdown> <div class="dropdown" appListDropdown>
<button <button
class="btn btn-sm btn-outline-secondary dropdown-toggle" class="btn btn-sm btn-outline-secondary dropdown-toggle"
type="button" type="button"
@@ -98,7 +100,7 @@
</button> </button>
</div> </div>
</div> </div>
<button type="button" class="btn btn-sm btn-outline-primary ml-3" (click)="invite()"> <button type="button" class="btn btn-sm btn-outline-primary" (click)="invite()">
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i> <i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
{{ "inviteUser" | i18n }} {{ "inviteUser" | i18n }}
</button> </button>