[gnome-shell] gdm: clean up spacing
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] gdm: clean up spacing
- Date: Tue, 11 Oct 2011 21:28:04 +0000 (UTC)
commit d0edd970e12459addffc5c2bb75d31ebb09af68d
Author: Ray Strode <rstrode redhat com>
Date: Tue Oct 11 13:34:04 2011 -0400
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
data/theme/gdm.css | 2 +-
js/gdm/loginDialog.js | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/data/theme/gdm.css b/data/theme/gdm.css
index c77884b..83a09c1 100644
--- a/data/theme/gdm.css
+++ b/data/theme/gdm.css
@@ -99,7 +99,7 @@
}
.login-dialog-prompt-layout {
- padding-bottom: 64px;
+ padding-bottom: 32px;
}
.login-dialog-prompt-label {
color: white;
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index 3db76de..5420217 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -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]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]