[gnome-software/1870-source-chooser-popover-is-too-small-in-some-cases] gs-origin-popover-row: Define minimum width
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1870-source-chooser-popover-is-too-small-in-some-cases] gs-origin-popover-row: Define minimum width
- Date: Mon, 22 Aug 2022 09:57:30 +0000 (UTC)
commit 39d954272b7adcc6c00fe4147037a919fc29650f
Author: Milan Crha <mcrha redhat com>
Date: Mon Aug 22 11:55:47 2022 +0200
gs-origin-popover-row: Define minimum width
To not have the popover too narrow, when it contains only short-labeled items.
Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1870
src/gs-origin-popover-row.ui | 3 +++
src/style.css | 4 ++++
2 files changed, 7 insertions(+)
---
diff --git a/src/gs-origin-popover-row.ui b/src/gs-origin-popover-row.ui
index 89b505307..88a296977 100644
--- a/src/gs-origin-popover-row.ui
+++ b/src/gs-origin-popover-row.ui
@@ -4,6 +4,9 @@
<child>
<object class="GtkBox">
<property name="orientation">horizontal</property>
+ <style>
+ <class name="origin-popover-row"/>
+ </style>
<child>
<object class="GtkBox" id="row_vbox">
<property name="orientation">vertical</property>
diff --git a/src/style.css b/src/style.css
index b36620824..e43a8dcc4 100644
--- a/src/style.css
+++ b/src/style.css
@@ -34,6 +34,10 @@ screenshot-carousel button,
padding: 6px;
}
+.origin-popover-row {
+ min-width: 200px;
+}
+
.origin-rounded-box {
background-color: alpha(currentColor, .15);
border-radius: 999px;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]