[gnome-software: 2/3] details-page: Make the histogram adaptive
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 2/3] details-page: Make the histogram adaptive
- Date: Mon, 22 Aug 2022 15:24:35 +0000 (UTC)
commit 9f61a72854c0de3d20c33cb93ae85c6053853142
Author: Adrien Plazas <kekun plazas laposte net>
Date: Mon Aug 22 12:39:11 2022 +0200
details-page: Make the histogram adaptive
This makes it adapt to fill the available width instead of using a
harcoded fixed width. Not only does it better uses the available space,
but it makes the histogram able to fit phone screens again. This also
gives it a 500px maximum with.
src/gs-details-page.ui | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-details-page.ui b/src/gs-details-page.ui
index a8adc469e..6e12e0a1b 100644
--- a/src/gs-details-page.ui
+++ b/src/gs-details-page.ui
@@ -877,10 +877,16 @@
<property name="activatable">False</property>
<property name="visible">False</property>
<child>
- <object class="GsReviewHistogram" id="histogram">
+ <object class="AdwClamp">
<property name="halign">start</property>
+ <property name="maximum-size">500</property>
+ <property name="tightening-threshold">500</property>
<property name="valign">center</property>
- <property name="width-request">350</property>
+ <child>
+ <object class="GsReviewHistogram" id="histogram">
+ <property name="valign">center</property>
+ </object>
+ </child>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]