diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index 3c75aead8..716b40dfb 100644 --- a/data/theme/gnome-shell.css +++ b/data/theme/gnome-shell.css @@ -1859,12 +1859,8 @@ StButton.popup-menu-item:insensitive { color: #666666; } -.prompt-dialog-password-label:ltr { - padding-right: 0.5em; -} - -.prompt-dialog-password-label:rtl { - padding-left: 0.5em; +.prompt-dialog-password-box { + spacing: 1em; } .prompt-dialog-error-label { diff --git a/js/ui/polkitAuthenticationAgent.js b/js/ui/polkitAuthenticationAgent.js index 982b0f8c7..0f374a3be 100644 --- a/js/ui/polkitAuthenticationAgent.js +++ b/js/ui/polkitAuthenticationAgent.js @@ -135,17 +135,17 @@ const AuthenticationDialog = new Lang.Class({ this._onUserChanged(); - this._passwordBox = new St.BoxLayout({ vertical: false }); + this._passwordBox = new St.BoxLayout({ vertical: false, style_class: 'prompt-dialog-password-box' }); messageBox.add(this._passwordBox); this._passwordLabel = new St.Label(({ style_class: 'prompt-dialog-password-label' })); - this._passwordBox.add(this._passwordLabel); + this._passwordBox.add(this._passwordLabel, { y_fill: false, y_align: St.Align.MIDDLE }); this._passwordEntry = new St.Entry({ style_class: 'prompt-dialog-password-entry', text: "", can_focus: true}); ShellEntry.addContextMenu(this._passwordEntry, { isPassword: true }); this._passwordEntry.clutter_text.connect('activate', Lang.bind(this, this._onEntryActivate)); this._passwordBox.add(this._passwordEntry, - {expand: true }); + { expand: true }); this.setInitialKeyFocus(this._passwordEntry); this._passwordBox.hide();