Fix working icon placement on password save

Before, the icon appeared below the text input for the password. Now, it
appears inside the text input, to the right end.

The CSS was adjusted based on other icons shown in that position for
other text inputs in the Share tab view, like the information icon or
the clipboard icon.

Fixes #4135

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2017-04-24 00:07:20 +02:00
parent 11c7953888
commit 36f55b5867
2 changed files with 5 additions and 4 deletions

View File

@ -14,7 +14,8 @@
} }
.shareTabView .shareWithRemoteInfo, .shareTabView .shareWithRemoteInfo,
.shareTabView .clipboardButton { .shareTabView .clipboardButton,
.shareTabView .linkPass .icon-loading-small {
position: absolute; position: absolute;
right: -7px; right: -7px;
top: -4px; top: -4px;
@ -152,7 +153,7 @@
} }
.shareTabView .linkPass .icon-loading-small { .shareTabView .linkPass .icon-loading-small {
margin-top: 9px; margin-right: 0px;
} }
.shareTabView .icon { .shareTabView .icon {

View File

@ -60,14 +60,14 @@
'<input type="checkbox" name="showPassword" id="showPassword-{{cid}}" class="checkbox showPasswordCheckbox" {{#if isPasswordSet}}checked="checked"{{/if}} value="1" />' + '<input type="checkbox" name="showPassword" id="showPassword-{{cid}}" class="checkbox showPasswordCheckbox" {{#if isPasswordSet}}checked="checked"{{/if}} value="1" />' +
'<label for="showPassword-{{cid}}">{{enablePasswordLabel}}</label>' + '<label for="showPassword-{{cid}}">{{enablePasswordLabel}}</label>' +
' {{/if}}' + ' {{/if}}' +
'<div id="linkPass" class="linkPass {{#unless isPasswordSet}}hidden{{/unless}}">' + '<div id="linkPass" class="oneline linkPass {{#unless isPasswordSet}}hidden{{/unless}}">' +
' <label for="linkPassText-{{cid}}" class="hidden-visually">{{passwordLabel}}</label>' + ' <label for="linkPassText-{{cid}}" class="hidden-visually">{{passwordLabel}}</label>' +
' {{#if showPasswordCheckBox}}' + ' {{#if showPasswordCheckBox}}' +
' <input id="linkPassText-{{cid}}" class="linkPassText" type="password" placeholder="{{passwordPlaceholder}}" />' + ' <input id="linkPassText-{{cid}}" class="linkPassText" type="password" placeholder="{{passwordPlaceholder}}" />' +
' {{else}}' + ' {{else}}' +
' <input id="linkPassText-{{cid}}" class="linkPassText" type="password" placeholder="{{passwordPlaceholderInitial}}" />' + ' <input id="linkPassText-{{cid}}" class="linkPassText" type="password" placeholder="{{passwordPlaceholderInitial}}" />' +
' {{/if}}' + ' {{/if}}' +
' <span class="icon-loading-small hidden"></span>' + ' <span class="icon icon-loading-small hidden"></span>' +
'</div>' + '</div>' +
'{{else}}' + '{{else}}' +
// FIXME: this doesn't belong in this view // FIXME: this doesn't belong in this view