[gnome-software: 1/2] feature-tile: Clamp the subtitle
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 1/2] feature-tile: Clamp the subtitle
- Date: Sun, 24 Jul 2022 18:02:47 +0000 (UTC)
commit 6167741bc9fbed871641ad4eafafb30a080d669a
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sun Jul 24 21:43:37 2022 +0200
feature-tile: Clamp the subtitle
This prevents the subtitle from being too wide.
Fixes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1412
src/gs-feature-tile.ui | 25 +++++++++++++++----------
1 file changed, 15 insertions(+), 10 deletions(-)
---
diff --git a/src/gs-feature-tile.ui b/src/gs-feature-tile.ui
index d36f8e858..c9bb956fc 100644
--- a/src/gs-feature-tile.ui
+++ b/src/gs-feature-tile.ui
@@ -57,16 +57,21 @@
</object>
</child>
<child>
- <object class="GtkLabel" id="subtitle">
- <property name="ellipsize">end</property>
- <property name="xalign">0.5</property>
- <property name="halign">center</property>
- <property name="valign">start</property>
- <property name="lines">1</property>
- <property name="justify">center</property>
- <style>
- <class name="caption"/>
- </style>
+ <object class="AdwClamp">
+ <property name="maximum-size">350</property>
+ <property name="tightening-threshold">350</property>
+ <child>
+ <object class="GtkLabel" id="subtitle">
+ <property name="ellipsize">end</property>
+ <property name="xalign">0.5</property>
+ <property name="valign">start</property>
+ <property name="lines">1</property>
+ <property name="justify">center</property>
+ <style>
+ <class name="caption"/>
+ </style>
+ </object>
+ </child>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]