1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-02 08:40:08 +01:00

Merge pull request #1320 from bitwarden/Bug.CannotSelectTextFromNoteField

Addressed issue #1269
This commit is contained in:
Addison Beck 2020-07-08 14:37:51 -05:00 committed by GitHub
commit abded9afcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,15 +17,16 @@
<div class="box-content"> <div class="box-content">
<div class="box-content-row"> <div class="box-content-row">
<span class="row-label">{{'name' | i18n}}</span> <span class="row-label">{{'name' | i18n}}</span>
{{cipher.name}} <input type="text" [value]="cipher.name" readonly aria-readonly="true"/>
</div> </div>
<!-- Login --> <!-- Login -->
<div *ngIf="cipher.login"> <div *ngIf="cipher.login">
<div class="box-content-row box-content-row-flex" *ngIf="cipher.login.username"> <div class="box-content-row box-content-row-flex" *ngIf="cipher.login.username">
<div class="row-main"> <div class="row-main">
<span class="row-label draggable" draggable="true" <span class="row-label draggable" draggable="true"
(dragstart)="setTextDataOnDrag($event, cipher.login.username)">{{'username' | i18n}}</span> (dragstart)="setTextDataOnDrag($event, cipher.login.username)">{{'username' | i18n}}
{{cipher.login.username}} </span>
<input type="text" [value]="cipher.login.username" readonly aria-readonly="true" />
</div> </div>
<div class="action-buttons"> <div class="action-buttons">
<a class="row-btn" href="#" appStopClick appA11yTitle="{{'copyUsername' | i18n}}" <a class="row-btn" href="#" appStopClick appA11yTitle="{{'copyUsername' | i18n}}"
@ -187,7 +188,9 @@
<div class="row-main"> <div class="row-main">
<span class="row-label" *ngIf="!u.isWebsite">{{'uri' | i18n}}</span> <span class="row-label" *ngIf="!u.isWebsite">{{'uri' | i18n}}</span>
<span class="row-label" *ngIf="u.isWebsite">{{'website' | i18n}}</span> <span class="row-label" *ngIf="u.isWebsite">{{'website' | i18n}}</span>
<span title="{{u.uri}}">{{u.hostnameOrUri}}</span> <span title="{{u.uri}}">
<input type="text" [value]="u.hostnameOrUri" readonly aria-readonly="true" />
</span>
</div> </div>
<div class="action-buttons"> <div class="action-buttons">
<a class="row-btn" href="#" appStopClick appA11yTitle="{{'launch' | i18n}}" *ngIf="u.canLaunch" <a class="row-btn" href="#" appStopClick appA11yTitle="{{'launch' | i18n}}" *ngIf="u.canLaunch"
@ -207,7 +210,9 @@
{{'notes' | i18n}} {{'notes' | i18n}}
</div> </div>
<div class="box-content"> <div class="box-content">
<div class="box-content-row pre-wrap">{{cipher.notes}}</div> <div class="box-content-row">
<textarea [value]="cipher.notes" rows="6" readonly aria-readonly="true"></textarea>
</div>
</div> </div>
</div> </div>
<div class="box" *ngIf="cipher.hasFields"> <div class="box" *ngIf="cipher.hasFields">