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.
This commit is contained in:
Georges Basile Stavracas Neto 2019-10-12 21:33:41 -03:00
parent 5b6deff977
commit e71c249ea5
2 changed files with 6 additions and 2 deletions

View File

@ -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);

View File

@ -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);