From 00d3fee58eb64a292c3d2d8d38c1e1050e29f838 Mon Sep 17 00:00:00 2001 From: Olivier Goulet Date: Fri, 29 Sep 2023 15:31:00 -0400 Subject: [PATCH 1/2] fix: Prevent overflowing last menu dropdown --- less/components/_images.less | 0 .../menu.less => layout/_navbar.less} | 29 ++++++++++++++++++- less/styles.less | 5 ++-- 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 less/components/_images.less rename less/{components/menu.less => layout/_navbar.less} (89%) diff --git a/less/components/_images.less b/less/components/_images.less new file mode 100644 index 000000000..e69de29bb diff --git a/less/components/menu.less b/less/layout/_navbar.less similarity index 89% rename from less/components/menu.less rename to less/layout/_navbar.less index 1203fc93a..61f67f245 100644 --- a/less/components/menu.less +++ b/less/layout/_navbar.less @@ -1,3 +1,17 @@ +/*! + * Copyright (c) 2019, 2023 Eclipse Foundation, Inc. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0 which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * Contributors: + * Eric Poirier + * Olivier Goulet + * + * SPDX-License-Identifier: EPL-2.0 +*/ + .toolbar-container-wrapper{ background-size: cover; } @@ -213,6 +227,18 @@ } } +// Prevent menu from overflowing on the right side of the screen. The reason we +// are selecting the 2nd last child is because the last child is a mobile-only +// menu item. +#main-menu .navbar-nav li.dropdown:nth-last-child(2) { + position: relative; + + & > .dropdown-menu { + left: -100%; + right: auto; + } +} + .gsc-search-button-v2 { border: 1px solid @white !important; border-radius: 0px !important; @@ -230,4 +256,5 @@ line-height: 14px !important; position: relative; top: 3px; -} \ No newline at end of file +} + diff --git a/less/styles.less b/less/styles.less index 4545b6dbe..1e443b0b3 100644 --- a/less/styles.less +++ b/less/styles.less @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2019 Eclipse Foundation, Inc. + * Copyright (c) 2019, 2023 Eclipse Foundation, Inc. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at @@ -16,9 +16,9 @@ @import 'vendors/_syntax.less'; @import '_variables.less'; + @import 'components/tabs.less'; @import 'components/_commons.less'; -@import 'components/menu.less'; @import 'components/jumbotron.less'; @import 'components/home.less'; @import 'components/panels.less'; @@ -29,6 +29,7 @@ @import 'components/_eclipsefdn-meeting-minutes.less'; @import 'layout/_header.less'; +@import 'layout/_navbar.less'; @import 'transient.less'; @import 'release-8.less'; From d5da00e61ef7cc40d47cd1bca5289c7ecc6ca26b Mon Sep 17 00:00:00 2001 From: Olivier Goulet Date: Fri, 29 Sep 2023 15:34:02 -0400 Subject: [PATCH 2/2] fix: Remove bad file --- less/components/_images.less | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 less/components/_images.less diff --git a/less/components/_images.less b/less/components/_images.less deleted file mode 100644 index e69de29bb..000000000