diff options
author | Philip Chimento <philip@endlessm.com> | 2013-08-07 16:00:05 -0700 |
---|---|---|
committer | Philip Chimento <philip@endlessm.com> | 2013-08-07 16:00:05 -0700 |
commit | 76b69f7b3751bd71f9eeb8eceba82d64fb5e05ef (patch) | |
tree | 52eb7d276b48974a8b1fe7e92448c3aa4d8fd958 /wikipedia | |
parent | 246805a025bd097497213583ace93637b46ad2b2 (diff) |
Widen ArticleList
In order to ellipsize as few labels as possible.
[endlessm/eos-wikipedia-brazil#22]
[endlessm/eos-sdk#brazil22]
Diffstat (limited to 'wikipedia')
-rw-r--r-- | wikipedia/ArticleList.js | 6 | ||||
-rw-r--r-- | wikipedia/TextButton.js | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/wikipedia/ArticleList.js b/wikipedia/ArticleList.js index 50b7d2c..05f4470 100644 --- a/wikipedia/ArticleList.js +++ b/wikipedia/ArticleList.js @@ -5,6 +5,7 @@ const Lang = imports.lang; const TextButton = imports.TextButton; +const ARTICLE_LIST_SIZE_REQUEST = 320; const HOVER_ARROW_URI = "/com/endlessm/wikipedia-domain/assets/submenu_hover_arrow.png"; const ArticleList = new Lang.Class({ @@ -27,8 +28,9 @@ const ArticleList = new Lang.Class({ vexpand: true }); - //width is set per designs, height is set arbitrarily for now but doesn't matter because it's just a min size - this.set_size_request(258, -1); + // width is set per designs, height is set arbitrarily for now but + // doesn't matter because it's just a min size + this.set_size_request(ARTICLE_LIST_SIZE_REQUEST, -1); this.add(this._grid); }, diff --git a/wikipedia/TextButton.js b/wikipedia/TextButton.js index 0960090..834826f 100644 --- a/wikipedia/TextButton.js +++ b/wikipedia/TextButton.js @@ -5,8 +5,8 @@ const Gtk = imports.gi.Gtk; const Pango = imports.gi.Pango; // This is an approximate number of characters that will keep the label from -// going over its specified 258px -const ARTICLE_LABEL_MAX_WIDTH_CHARS = 18; +// going over its specified width +const ARTICLE_LABEL_MAX_WIDTH_CHARS = 24; const TextButton = new Lang.Class({ Name: 'EndlessTextButton', |