[libadwaita/wip/exalm/menu-height] stylesheet: Increase menu item height
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/menu-height] stylesheet: Increase menu item height
- Date: Fri, 26 Nov 2021 12:32:14 +0000 (UTC)
commit e4fb6f701e10b4533e02b0fb392ddd9cdb937ee5
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Fri Nov 26 17:32:24 2021 +0500
stylesheet: Increase menu item height
Fixes https://gitlab.gnome.org/GNOME/libadwaita/-/issues/274
src/stylesheet/widgets/_dropdowns.scss | 6 ------
src/stylesheet/widgets/_menus.scss | 10 +++++-----
2 files changed, 5 insertions(+), 11 deletions(-)
---
diff --git a/src/stylesheet/widgets/_dropdowns.scss b/src/stylesheet/widgets/_dropdowns.scss
index 8e4bb232..af178d27 100644
--- a/src/stylesheet/widgets/_dropdowns.scss
+++ b/src/stylesheet/widgets/_dropdowns.scss
@@ -16,12 +16,6 @@ combobox {
min-width: 16px;
}
- // align menu labels with the button label
- > popover.menu > contents modelbutton {
- padding-left: 9px;
- padding-right: 9px;
- }
-
&:drop(active) { // FIXME: untested
box-shadow: none;
diff --git a/src/stylesheet/widgets/_menus.scss b/src/stylesheet/widgets/_menus.scss
index 4a7755cf..2f1aabc0 100644
--- a/src/stylesheet/widgets/_menus.scss
+++ b/src/stylesheet/widgets/_menus.scss
@@ -5,8 +5,8 @@ popover.menu {
button.image-button.model {
@extend %button_basic_flat;
- min-height: 30px;
- min-width: 30px;
+ min-height: 32px;
+ min-width: 32px;
padding: 0;
border: none;
outline: none;
@@ -118,7 +118,7 @@ popover.menu {
}
modelbutton {
- min-height: 30px;
+ min-height: 32px;
min-width: 40px;
padding: 0 $menu_padding;
border-radius: $menu_radius;
@@ -164,7 +164,7 @@ popover.menu {
> row {
border-radius: $menu_radius;
padding: 0 $menu_padding;
- min-height: 30px;
+ min-height: 32px;
min-width: 40px;
&:selected {
@@ -206,7 +206,7 @@ popover.menu {
> row {
margin: 0 $menu_margin;
- padding: 8px;
+ padding: 9px $menu_padding;
min-height: 0;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]