summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wikipedia/ArticleList.js6
-rw-r--r--wikipedia/TextButton.js4
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',