From d232e8cdf960a62ae45c34f332df0f954bdf8bd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 27 Aug 2021 01:10:52 +0200 Subject: [PATCH] Reduce width of the admin menu on large screens On very large screens, the admin menu had a lot of blank space for languages where all sections had short names (like English). This was inconvenient because the icon to open a submenu was far from its associated menu item. Using the `max-content` value for the `max-width` property, we reduce the amount of blank space in these cases. --- app/assets/stylesheets/admin/menu.scss | 1 + app/assets/stylesheets/layout.scss | 1 + 2 files changed, 2 insertions(+) diff --git a/app/assets/stylesheets/admin/menu.scss b/app/assets/stylesheets/admin/menu.scss index cb913aeb8..a626b625a 100644 --- a/app/assets/stylesheets/admin/menu.scss +++ b/app/assets/stylesheets/admin/menu.scss @@ -176,6 +176,7 @@ a { font-weight: normal; + margin-#{$global-right}: 0; } .is-active { diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 6f96b03fe..1b363327a 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -460,6 +460,7 @@ button, > nav { flex: 20%; min-width: $side-menu-min-width; + max-width: max-content; + * { flex: 80%;