[gnome-software] app-row: minor tweaks to make it look better at small width
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] app-row: minor tweaks to make it look better at small width
- Date: Fri, 8 Jan 2016 11:21:09 +0000 (UTC)
commit 57eca5e29ae967e01140c7bff6257a050cd8badc
Author: Rafal Luzynski <digitalfreak lingonborough com>
Date: Fri Dec 18 10:01:21 2015 +0100
app-row: minor tweaks to make it look better at small width
The list of changes:
- limit the number of lines if the application name is wrapped,
- ellipsize it at the end if it does not fit into 3 lines,
- allow breaking words in the app name and app description if
any word is even too long for the line.
These changes have been originally designed for bug 758662 but
can be useful in other cases where we have to deal with weirdly
long application names. See also:
https://bugzilla.redhat.com/show_bug.cgi?id=1282610
https://bugzilla.gnome.org/show_bug.cgi?id=758662
Signed-off-by: Richard Hughes <richard hughsie com>
src/gs-app-row.ui | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app-row.ui b/src/gs-app-row.ui
index d7b8e43..8948073 100644
--- a/src/gs-app-row.ui
+++ b/src/gs-app-row.ui
@@ -45,6 +45,9 @@
<property name="max_width_chars">20</property>
<property name="xalign">0.0</property>
<property name="yalign">0.5</property>
+ <property name="ellipsize">end</property>
+ <property name="lines">3</property>
+ <property name="wrap-mode">word-char</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -112,6 +115,7 @@
<property name="margin_start">20</property>
<property name="margin_end">20</property>
<property name="wrap">True</property>
+ <property name="wrap-mode">word-char</property>
<property name="ellipsize">end</property>
<property name="lines">3</property>
<property name="xalign">0</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]