From e71c249ea5585ca0bb594b7bca68508f89d25fa5 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Sat, 12 Oct 2019 21:33:41 -0300 Subject: [PATCH] authPrompt: Refine entry width The current entry has a hardcoded size of 320px, which doesn't really fit the lock screen mockups. Remove this hardcoded size from AuthPrompt entries and make them horizontally expand. --- data/theme/gnome-shell-sass/_common.scss | 1 + js/gdm/authPrompt.js | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/data/theme/gnome-shell-sass/_common.scss b/data/theme/gnome-shell-sass/_common.scss index 3bcd35e95..9e484a97c 100644 --- a/data/theme/gnome-shell-sass/_common.scss +++ b/data/theme/gnome-shell-sass/_common.scss @@ -1929,6 +1929,7 @@ StScrollBar { StEntry { @extend %search_entry; + width: -1px; border-radius: $button_radius; @if $variant=='dark' { $_gdm_entry_bg: transparentize(lighten(desaturate(#241f31, 20%), 2%), 0.5); diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 0db40564d..f01a2fce1 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -122,8 +122,11 @@ var AuthPrompt = class { this.cancelButton.connect('clicked', () => this.cancel()); mainBox.add_child(this.cancelButton); - this._entry = new St.Entry({ style_class: 'login-dialog-prompt-entry', - can_focus: true }); + this._entry = new St.Entry({ + style_class: 'login-dialog-prompt-entry', + can_focus: true, + x_expand: true, + }); ShellEntry.addContextMenu(this._entry, { isPassword: true, actionMode: Shell.ActionMode.NONE }); mainBox.add_child(this._entry);