gdm: clean up spacing

There's a lot of dead vertical space right now from
the session list, even if there are no sessions.

This commit mops that up.

https://bugzilla.gnome.org/show_bug.cgi?id=661479
This commit is contained in:
Ray Strode 2011-10-11 13:34:04 -04:00
parent 8529ca70af
commit d0edd970e1
2 changed files with 6 additions and 3 deletions

View File

@ -99,7 +99,7 @@
}
.login-dialog-prompt-layout {
padding-bottom: 64px;
padding-bottom: 32px;
}
.login-dialog-prompt-label {
color: white;

View File

@ -694,10 +694,13 @@ SessionList.prototype = {
let ids = GdmGreeter.get_session_ids();
ids.sort();
if (ids.length <= 1)
if (ids.length <= 1) {
this._box.hide();
else
this._button.hide();
} else {
this._button.show();
this._box.show();
}
for (let i = 0; i < ids.length; i++) {
let [sessionName, sessionDescription] = GdmGreeter.get_session_name_and_description(ids[i]);