[gnome-software: 1/2] details-page: Ellipsize the origin label after 20 chars
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 1/2] details-page: Ellipsize the origin label after 20 chars
- Date: Fri, 23 Jul 2021 12:16:12 +0000 (UTC)
commit 13addd038c6488108ad75a61ed591d205499389f
Author: Adrien Plazas <kekun plazas laposte net>
Date: Fri Jul 23 09:58:05 2021 +0200
details-page: Ellipsize the origin label after 20 chars
This keeps its width in check, so prevent the origin button from
overtaking the header bar and making it too wide for smartphones.
src/gs-details-page.ui | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/gs-details-page.ui b/src/gs-details-page.ui
index 2a793a18b..029d2fa16 100644
--- a/src/gs-details-page.ui
+++ b/src/gs-details-page.ui
@@ -1031,7 +1031,9 @@
<property name="valign">GTK_ALIGN_CENTER</property>
<child>
<object class="GtkLabel" id="origin_button_label">
+ <property name="ellipsize">end</property>
<property name="label"></property>
+ <property name="max_width_chars">20</property>
<property name="valign">GTK_ALIGN_CENTER</property>
<property name="visible">1</property>
<property name="xalign">0</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]