1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

dont use flex for password positioning

This commit is contained in:
Kyle Spearrin 2019-04-01 13:56:34 -04:00
parent 3980dc7e84
commit 52a5086f7e
5 changed files with 15 additions and 8 deletions

2
jslib

@ -1 +1 @@
Subproject commit dc37528d223cd12f37297c80e6ad54ab68dfb109 Subproject commit 2ef1b7d65c02f7f204a0bb5a46c28aa093be274d

View File

@ -159,8 +159,8 @@ import { AutofocusDirective } from 'jslib/angular/directives/autofocus.directive
import { BlurClickDirective } from 'jslib/angular/directives/blur-click.directive'; import { BlurClickDirective } from 'jslib/angular/directives/blur-click.directive';
import { BoxRowDirective } from 'jslib/angular/directives/box-row.directive'; import { BoxRowDirective } from 'jslib/angular/directives/box-row.directive';
import { FallbackSrcDirective } from 'jslib/angular/directives/fallback-src.directive'; import { FallbackSrcDirective } from 'jslib/angular/directives/fallback-src.directive';
import { FlexCopyDirective } from 'jslib/angular/directives/flex-copy.directive';
import { InputVerbatimDirective } from 'jslib/angular/directives/input-verbatim.directive'; import { InputVerbatimDirective } from 'jslib/angular/directives/input-verbatim.directive';
import { SelectCopyDirective } from 'jslib/angular/directives/select-copy.directive';
import { StopClickDirective } from 'jslib/angular/directives/stop-click.directive'; import { StopClickDirective } from 'jslib/angular/directives/stop-click.directive';
import { StopPropDirective } from 'jslib/angular/directives/stop-prop.directive'; import { StopPropDirective } from 'jslib/angular/directives/stop-prop.directive';
import { TrueFalseValueDirective } from 'jslib/angular/directives/true-false-value.directive'; import { TrueFalseValueDirective } from 'jslib/angular/directives/true-false-value.directive';
@ -267,7 +267,6 @@ registerLocaleData(localeZhTw, 'zh-TW');
ExportComponent, ExportComponent,
ExposedPasswordsReportComponent, ExposedPasswordsReportComponent,
FallbackSrcDirective, FallbackSrcDirective,
FlexCopyDirective,
FolderAddEditComponent, FolderAddEditComponent,
FooterComponent, FooterComponent,
FrontendLayoutComponent, FrontendLayoutComponent,
@ -332,6 +331,7 @@ registerLocaleData(localeZhTw, 'zh-TW');
ReusedPasswordsReportComponent, ReusedPasswordsReportComponent,
SearchCiphersPipe, SearchCiphersPipe,
SearchPipe, SearchPipe,
SelectCopyDirective,
SettingsComponent, SettingsComponent,
ShareComponent, ShareComponent,
StopClickDirective, StopClickDirective,

View File

@ -9,9 +9,9 @@
</div> </div>
<ul class="list-group list-group-flush" *ngIf="history.length"> <ul class="list-group list-group-flush" *ngIf="history.length">
<li class="list-group-item d-flex" *ngFor="let h of history"> <li class="list-group-item d-flex" *ngFor="let h of history">
<div> <div class="password-row">
<div class="text-monospace password-wrapper" [innerHTML]="h.password | colorPassword" <div class="text-monospace password-wrapper" [innerHTML]="h.password | colorPassword"
appFlexCopy></div> appSelectCopy></div>
<small class="text-muted">{{h.date | date:'medium'}}</small> <small class="text-muted">{{h.date | date:'medium'}}</small>
</div> </div>
<div class="ml-auto"> <div class="ml-auto">

View File

@ -2,7 +2,9 @@
<h1>{{'passwordGenerator' | i18n}}</h1> <h1>{{'passwordGenerator' | i18n}}</h1>
</div> </div>
<div class="card card-password bg-light my-4"> <div class="card card-password bg-light my-4">
<div class="card-body" [innerHTML]="password | colorPassword" appFlexCopy></div> <div class="card-body">
<div class="password-wrapper" [innerHTML]="password | colorPassword" appSelectCopy></div>
</div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="form-check form-check-inline"> <div class="form-check form-check-inline">

View File

@ -407,8 +407,13 @@ input[type="search"]::-webkit-search-cancel-button {
} }
.password-wrapper { .password-wrapper {
display: flex !important; word-break: break-all;
flex-wrap: wrap; white-space: pre-wrap;
min-width: 0;
}
.password-row {
min-width: 0;
} }
.password-number { .password-number {