This commit is contained in:
Kyle Spearrin 2018-01-30 13:32:58 -05:00
parent 6316842a49
commit 654b4b42a0
4 changed files with 25 additions and 16 deletions

View File

@ -173,7 +173,8 @@
<div class="box-content">
<div class="box-content-row" *ngIf="cipher.type === cipherType.Login">
<label for="loginTotp">{{'authenticatorKeyTotp' | i18n}}</label>
<input id="loginTotp" type="text" name="Login.Totp" [(ngModel)]="cipher.login.totp">
<input id="loginTotp" type="text" name="Login.Totp" class="monospaced"
[(ngModel)]="cipher.login.totp">
</div>
<div class="box-content-row">
<label for="folder">{{'folder' | i18n}}</label>

View File

@ -2,23 +2,21 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="box" *ngIf="cipher">
<div class="box" *ngIf="cipher && cipher.hasAttachments">
<div class="box-header">
{{'attachments' | i18n}}
</div>
<div class="box-content">
<div *ngIf="cipher.hasAttachments">
<div class="box-content-row box-content-row-flex" *ngFor="let a of cipher.attachments">
<div class="row-main">
{{a.fileName}}
</div>
<small class="row-sub-label">{{a.sizeName}}</small>
<div class="action-buttons no-pad">
<a class="row-btn" href="#" appStopClick appBlurClick title="{{'delete' | i18n}}"
(click)="delete(a)">
<i class="fa fa-lg fa-trash-o"></i>
</a>
</div>
<div class="box-content no-hover">
<div class="box-content-row box-content-row-flex" *ngFor="let a of cipher.attachments">
<div class="row-main">
{{a.fileName}}
</div>
<small class="row-sub-label">{{a.sizeName}}</small>
<div class="action-buttons no-pad">
<a class="row-btn" href="#" appStopClick appBlurClick title="{{'delete' | i18n}}"
(click)="delete(a)">
<i class="fa fa-lg fa-trash-o"></i>
</a>
</div>
</div>
</div>
@ -27,7 +25,7 @@
<div class="box-header">
{{'newAttachment' | i18n}}
</div>
<div class="box-content">
<div class="box-content no-hover">
<div class="box-content-row">
<label for="file">{{'file' | i18n}}</label>
<input type="file" id="file" name="file">

View File

@ -212,6 +212,12 @@
padding-top: 5px;
padding-bottom: 5px;
}
&.no-hover .box-content-row, .box-content-row.no-hover {
&:hover, &:focus {
background-color: initial;
}
}
}
.box-footer {

View File

@ -81,6 +81,10 @@
font-size: $font-size-large;
word-break: break-all;
font-family: $font-family-monospace;
min-height: 60px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
.modal-body & {