This is an automated email from the ASF dual-hosted git repository.
bbovenzi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 2aa52f4ce7 navbar, cap dropdown size, and add scroll bar (#28561)
2aa52f4ce7 is described below
commit 2aa52f4ce78e1be7f34b0995d40be996b4826f26
Author: Michael Petro <[email protected]>
AuthorDate: Thu Dec 29 20:50:45 2022 -0500
navbar, cap dropdown size, and add scroll bar (#28561)
* navbar, cap dropdown size, and add scroll bar
* Formatting css
* main.css, remove extra newline
---
airflow/www/static/css/main.css | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/airflow/www/static/css/main.css b/airflow/www/static/css/main.css
index 2557f521e6..9e63eb5ad0 100644
--- a/airflow/www/static/css/main.css
+++ b/airflow/www/static/css/main.css
@@ -61,6 +61,13 @@ div.container {
color: #e2d2e2;
}
+/* If a category has a lot of menu items, we cap it, and
+ add a scroll bar */
+.navbar li.dropdown .dropdown-menu {
+ max-height: 300px;
+ overflow-y: auto;
+}
+
.navbar-nav li.dropdown:hover > .dropdown-menu,
.navbar-nav li.dropdown:focus-within > .dropdown-menu {
display: block;