mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
[CL-614] More spacing fixes (#13955)
* Fix all dialogs to use ng-container for bitDialogFooter * Fix button spacing * Fix send icon spacing
This commit is contained in:
@@ -25,13 +25,13 @@
|
|||||||
<span>{{ "lockWithMasterPassOnRestart1" | i18n }}</span>
|
<span>{{ "lockWithMasterPassOnRestart1" | i18n }}</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div bitDialogFooter>
|
<ng-container bitDialogFooter>
|
||||||
<button type="submit" bitButton bitFormButton buttonType="primary">
|
<button type="submit" bitButton bitFormButton buttonType="primary">
|
||||||
<span>{{ "setYourPinButton" | i18n }}</span>
|
<span>{{ "setYourPinButton" | i18n }}</span>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" bitButton bitFormButton buttonType="secondary" bitDialogClose>
|
<button type="button" bitButton bitFormButton buttonType="secondary" bitDialogClose>
|
||||||
{{ "cancel" | i18n }}
|
{{ "cancel" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</ng-container>
|
||||||
</bit-dialog>
|
</bit-dialog>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
</vault-carousel-slide>
|
</vault-carousel-slide>
|
||||||
</vault-carousel>
|
</vault-carousel>
|
||||||
</div>
|
</div>
|
||||||
<div bitDialogFooter class="tw-w-full">
|
<ng-container bitDialogFooter>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
bitButton
|
bitButton
|
||||||
@@ -50,5 +50,5 @@
|
|||||||
>
|
>
|
||||||
{{ "reviewAtRiskPasswords" | i18n }}
|
{{ "reviewAtRiskPasswords" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</ng-container>
|
||||||
</bit-simple-dialog>
|
</bit-simple-dialog>
|
||||||
|
|||||||
@@ -25,13 +25,13 @@
|
|||||||
<span>{{ "lockWithMasterPassOnRestart1" | i18n }}</span>
|
<span>{{ "lockWithMasterPassOnRestart1" | i18n }}</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div bitDialogFooter>
|
<ng-container bitDialogFooter>
|
||||||
<button type="submit" bitButton bitFormButton buttonType="primary">
|
<button type="submit" bitButton bitFormButton buttonType="primary">
|
||||||
<span>{{ "ok" | i18n }}</span>
|
<span>{{ "ok" | i18n }}</span>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" bitButton bitFormButton buttonType="secondary" bitDialogClose>
|
<button type="button" bitButton bitFormButton buttonType="secondary" bitDialogClose>
|
||||||
{{ "cancel" | i18n }}
|
{{ "cancel" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</ng-container>
|
||||||
</bit-dialog>
|
</bit-dialog>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -18,13 +18,13 @@
|
|||||||
<p>{{ "confirmIdentity" | i18n }}</p>
|
<p>{{ "confirmIdentity" | i18n }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div bitDialogFooter>
|
<ng-container bitDialogFooter>
|
||||||
<button bitButton bitFormButton type="submit" buttonType="danger" [disabled]="!secret">
|
<button bitButton bitFormButton type="submit" buttonType="danger" [disabled]="!secret">
|
||||||
{{ "deleteAccount" | i18n }}
|
{{ "deleteAccount" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bitButton type="button" buttonType="secondary" bitFormButton bitDialogClose>
|
<button bitButton type="button" buttonType="secondary" bitFormButton bitDialogClose>
|
||||||
{{ "cancel" | i18n }}
|
{{ "cancel" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</ng-container>
|
||||||
</bit-dialog>
|
</bit-dialog>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -42,12 +42,14 @@
|
|||||||
{{ "learnMoreAboutApi" | i18n }}
|
{{ "learnMoreAboutApi" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
<div class="tw-flex tw-gap-2">
|
||||||
<button type="button" bitButton buttonType="secondary" (click)="viewApiKey()">
|
<button type="button" bitButton buttonType="secondary" (click)="viewApiKey()">
|
||||||
{{ "viewApiKey" | i18n }}
|
{{ "viewApiKey" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button type="button" bitButton buttonType="secondary" (click)="rotateApiKey()">
|
<button type="button" bitButton buttonType="secondary" (click)="rotateApiKey()">
|
||||||
{{ "rotateApiKey" | i18n }}
|
{{ "rotateApiKey" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<form
|
<form
|
||||||
*ngIf="org && !loading"
|
*ngIf="org && !loading"
|
||||||
|
|||||||
@@ -28,13 +28,13 @@
|
|||||||
</p>
|
</p>
|
||||||
<app-user-verification formControlName="secret"> </app-user-verification>
|
<app-user-verification formControlName="secret"> </app-user-verification>
|
||||||
</div>
|
</div>
|
||||||
<div bitDialogFooter>
|
<ng-container bitDialogFooter>
|
||||||
<button type="submit" bitButton bitFormButton buttonType="danger" [disabled]="!loaded">
|
<button type="submit" bitButton bitFormButton buttonType="danger" [disabled]="!loaded">
|
||||||
{{ "deleteOrganization" | i18n }}
|
{{ "deleteOrganization" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button type="button" bitButton bitFormButton buttonType="secondary" bitDialogClose>
|
<button type="button" bitButton bitFormButton buttonType="secondary" bitDialogClose>
|
||||||
{{ "cancel" | i18n }}
|
{{ "cancel" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</ng-container>
|
||||||
</bit-dialog>
|
</bit-dialog>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -39,10 +39,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
|
<div class="tw-flex tw-gap-2">
|
||||||
<button type="submit" bitButton buttonType="primary" bitFormButton>
|
<button type="submit" bitButton buttonType="primary" bitFormButton>
|
||||||
{{ (tokenSent ? "changeEmail" : "continue") | i18n }}
|
{{ (tokenSent ? "changeEmail" : "continue") | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button type="button" bitButton *ngIf="tokenSent" (click)="reset()">
|
<button type="button" bitButton *ngIf="tokenSent" (click)="reset()">
|
||||||
{{ "cancel" | i18n }}
|
{{ "cancel" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -25,13 +25,13 @@
|
|||||||
<bit-label> {{ "dontAskFingerprintAgain" | i18n }}</bit-label>
|
<bit-label> {{ "dontAskFingerprintAgain" | i18n }}</bit-label>
|
||||||
</bit-form-control>
|
</bit-form-control>
|
||||||
</div>
|
</div>
|
||||||
<div bitDialogFooter>
|
<ng-container bitDialogFooter>
|
||||||
<button type="submit" buttonType="primary" bitButton bitFormButton>
|
<button type="submit" buttonType="primary" bitButton bitFormButton>
|
||||||
<span>{{ "confirm" | i18n }}</span>
|
<span>{{ "confirm" | i18n }}</span>
|
||||||
</button>
|
</button>
|
||||||
<button bitButton bitFormButton buttonType="secondary" type="button" bitDialogClose>
|
<button bitButton bitFormButton buttonType="secondary" type="button" bitDialogClose>
|
||||||
{{ "cancel" | i18n }}
|
{{ "cancel" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</ng-container>
|
||||||
</bit-dialog>
|
</bit-dialog>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -42,13 +42,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div bitDialogFooter>
|
<ng-container bitDialogFooter>
|
||||||
<button type="submit" bitButton bitFormButton buttonType="primary">
|
<button type="submit" bitButton bitFormButton buttonType="primary">
|
||||||
{{ "save" | i18n }}
|
{{ "save" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bitButton bitFormButton type="button" buttonType="secondary" bitDialogClose>
|
<button bitButton bitFormButton type="button" buttonType="secondary" bitDialogClose>
|
||||||
{{ "cancel" | i18n }}
|
{{ "cancel" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</ng-container>
|
||||||
</bit-dialog>
|
</bit-dialog>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -30,13 +30,13 @@
|
|||||||
</p>
|
</p>
|
||||||
</bit-callout>
|
</bit-callout>
|
||||||
</div>
|
</div>
|
||||||
<div bitDialogFooter>
|
<ng-container bitDialogFooter>
|
||||||
<button type="submit" buttonType="primary" *ngIf="!clientSecret" bitButton bitFormButton>
|
<button type="submit" buttonType="primary" *ngIf="!clientSecret" bitButton bitFormButton>
|
||||||
<span>{{ (data.isRotation ? "rotateApiKey" : "viewApiKey") | i18n }}</span>
|
<span>{{ (data.isRotation ? "rotateApiKey" : "viewApiKey") | i18n }}</span>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" bitButton bitFormButton bitDialogClose>
|
<button type="button" bitButton bitFormButton bitDialogClose>
|
||||||
{{ "close" | i18n }}
|
{{ "close" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</ng-container>
|
||||||
</bit-dialog>
|
</bit-dialog>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -8,11 +8,11 @@
|
|||||||
<p bitTypography="body1">
|
<p bitTypography="body1">
|
||||||
{{ "userApiKeyDesc" | i18n }}
|
{{ "userApiKeyDesc" | i18n }}
|
||||||
</p>
|
</p>
|
||||||
|
<div class="tw-flex tw-gap-2">
|
||||||
<button type="button" bitButton buttonType="secondary" (click)="viewUserApiKey()">
|
<button type="button" bitButton buttonType="secondary" (click)="viewUserApiKey()">
|
||||||
{{ "viewApiKey" | i18n }}
|
{{ "viewApiKey" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button type="button" bitButton buttonType="secondary" (click)="rotateUserApiKey()">
|
<button type="button" bitButton buttonType="secondary" (click)="rotateUserApiKey()">
|
||||||
{{ "rotateApiKey" | i18n }}
|
{{ "rotateApiKey" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<ng-template #viewUserApiKeyTemplate></ng-template>
|
</div>
|
||||||
<ng-template #rotateUserApiKeyTemplate></ng-template>
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// FIXME: Update this file to be type safe and remove this and next line
|
// FIXME: Update this file to be type safe and remove this and next line
|
||||||
// @ts-strict-ignore
|
// @ts-strict-ignore
|
||||||
import { Component, OnInit, ViewChild, ViewContainerRef } from "@angular/core";
|
import { Component, OnInit } from "@angular/core";
|
||||||
import { firstValueFrom, map } from "rxjs";
|
import { firstValueFrom, map } from "rxjs";
|
||||||
|
|
||||||
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
||||||
@@ -15,11 +15,6 @@ import { ApiKeyComponent } from "./api-key.component";
|
|||||||
templateUrl: "security-keys.component.html",
|
templateUrl: "security-keys.component.html",
|
||||||
})
|
})
|
||||||
export class SecurityKeysComponent implements OnInit {
|
export class SecurityKeysComponent implements OnInit {
|
||||||
@ViewChild("viewUserApiKeyTemplate", { read: ViewContainerRef, static: true })
|
|
||||||
viewUserApiKeyModalRef: ViewContainerRef;
|
|
||||||
@ViewChild("rotateUserApiKeyTemplate", { read: ViewContainerRef, static: true })
|
|
||||||
rotateUserApiKeyModalRef: ViewContainerRef;
|
|
||||||
|
|
||||||
showChangeKdf = true;
|
showChangeKdf = true;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
|||||||
@@ -93,7 +93,8 @@
|
|||||||
<ng-template body let-rows$>
|
<ng-template body let-rows$>
|
||||||
<tr bitRow *ngFor="let s of rows$ | async">
|
<tr bitRow *ngFor="let s of rows$ | async">
|
||||||
<td bitCell (click)="editSend(s)" class="tw-cursor-pointer">
|
<td bitCell (click)="editSend(s)" class="tw-cursor-pointer">
|
||||||
<span class="tw-mr-2" aria-hidden="true">
|
<div class="tw-flex tw-gap-2 tw-items-center">
|
||||||
|
<span aria-hidden="true">
|
||||||
<i class="bwi bwi-fw bwi-lg bwi-file" *ngIf="s.type == sendType.File"></i>
|
<i class="bwi bwi-fw bwi-lg bwi-file" *ngIf="s.type == sendType.File"></i>
|
||||||
<i class="bwi bwi-fw bwi-lg bwi-file-text" *ngIf="s.type == sendType.Text"></i>
|
<i class="bwi bwi-fw bwi-lg bwi-file-text" *ngIf="s.type == sendType.Text"></i>
|
||||||
</span>
|
</span>
|
||||||
@@ -145,6 +146,7 @@
|
|||||||
></i>
|
></i>
|
||||||
<span class="tw-sr-only">{{ "pendingDeletion" | i18n }}</span>
|
<span class="tw-sr-only">{{ "pendingDeletion" | i18n }}</span>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td bitCell class="tw-text-muted" (click)="editSend(s)" class="tw-cursor-pointer">
|
<td bitCell class="tw-text-muted" (click)="editSend(s)" class="tw-cursor-pointer">
|
||||||
<small bitTypography="body2" appStopProp>{{ s.deletionDate | date: "medium" }}</small>
|
<small bitTypography="body2" appStopProp>{{ s.deletionDate | date: "medium" }}</small>
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
</bit-table>
|
</bit-table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div bitDialogFooter class="tw-flex tw-gap-2">
|
<ng-container bitDialogFooter>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
bitButton
|
bitButton
|
||||||
@@ -34,5 +34,5 @@
|
|||||||
<button bitButton buttonType="secondary" bitDialogClose type="button">
|
<button bitButton buttonType="secondary" bitDialogClose type="button">
|
||||||
{{ "cancel" | i18n }}
|
{{ "cancel" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</ng-container>
|
||||||
</bit-dialog>
|
</bit-dialog>
|
||||||
|
|||||||
@@ -21,9 +21,9 @@
|
|||||||
</bit-table>
|
</bit-table>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div bitDialogFooter>
|
<ng-container bitDialogFooter>
|
||||||
<button bitButton bitDialogClose buttonType="primary" type="button">
|
<button bitButton bitDialogClose buttonType="primary" type="button">
|
||||||
{{ "ok" | i18n }}
|
{{ "ok" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</ng-container>
|
||||||
</bit-dialog>
|
</bit-dialog>
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
</bit-hint>
|
</bit-hint>
|
||||||
</bit-form-field>
|
</bit-form-field>
|
||||||
</div>
|
</div>
|
||||||
<div bitDialogFooter class="tw-flex tw-gap-2 tw-w-full">
|
<ng-container bitDialogFooter>
|
||||||
<button bitButton buttonType="primary" type="submit" [disabled]="customFieldForm.invalid">
|
<button bitButton buttonType="primary" type="submit" [disabled]="customFieldForm.invalid">
|
||||||
{{ (variant === "add" ? "add" : "save") | i18n }}
|
{{ (variant === "add" ? "add" : "save") | i18n }}
|
||||||
</button>
|
</button>
|
||||||
@@ -43,6 +43,6 @@
|
|||||||
[appA11yTitle]="'deleteCustomField' | i18n: customFieldForm.value.label"
|
[appA11yTitle]="'deleteCustomField' | i18n: customFieldForm.value.label"
|
||||||
(click)="removeField()"
|
(click)="removeField()"
|
||||||
></button>
|
></button>
|
||||||
</div>
|
</ng-container>
|
||||||
</bit-dialog>
|
</bit-dialog>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
</bit-hint>
|
</bit-hint>
|
||||||
</bit-form-field>
|
</bit-form-field>
|
||||||
</div>
|
</div>
|
||||||
<div bitDialogFooter class="tw-flex tw-gap-2 tw-w-full">
|
<ng-container bitDialogFooter>
|
||||||
<button
|
<button
|
||||||
#submitBtn
|
#submitBtn
|
||||||
bitButton
|
bitButton
|
||||||
@@ -36,6 +36,6 @@
|
|||||||
[appA11yTitle]="'deleteFolder' | i18n"
|
[appA11yTitle]="'deleteFolder' | i18n"
|
||||||
[bitAction]="deleteFolder"
|
[bitAction]="deleteFolder"
|
||||||
></button>
|
></button>
|
||||||
</div>
|
</ng-container>
|
||||||
</bit-dialog>
|
</bit-dialog>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in New Issue
Block a user