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:
parent
5b6deff977
commit
e71c249ea5
@ -1929,6 +1929,7 @@ StScrollBar {
|
|||||||
|
|
||||||
StEntry {
|
StEntry {
|
||||||
@extend %search_entry;
|
@extend %search_entry;
|
||||||
|
width: -1px;
|
||||||
border-radius: $button_radius;
|
border-radius: $button_radius;
|
||||||
@if $variant=='dark' {
|
@if $variant=='dark' {
|
||||||
$_gdm_entry_bg: transparentize(lighten(desaturate(#241f31, 20%), 2%), 0.5);
|
$_gdm_entry_bg: transparentize(lighten(desaturate(#241f31, 20%), 2%), 0.5);
|
||||||
|
@ -122,8 +122,11 @@ var AuthPrompt = class {
|
|||||||
this.cancelButton.connect('clicked', () => this.cancel());
|
this.cancelButton.connect('clicked', () => this.cancel());
|
||||||
mainBox.add_child(this.cancelButton);
|
mainBox.add_child(this.cancelButton);
|
||||||
|
|
||||||
this._entry = new St.Entry({ style_class: 'login-dialog-prompt-entry',
|
this._entry = new St.Entry({
|
||||||
can_focus: true });
|
style_class: 'login-dialog-prompt-entry',
|
||||||
|
can_focus: true,
|
||||||
|
x_expand: true,
|
||||||
|
});
|
||||||
ShellEntry.addContextMenu(this._entry, { isPassword: true, actionMode: Shell.ActionMode.NONE });
|
ShellEntry.addContextMenu(this._entry, { isPassword: true, actionMode: Shell.ActionMode.NONE });
|
||||||
|
|
||||||
mainBox.add_child(this._entry);
|
mainBox.add_child(this._entry);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user