Secondary toolbar menu goes off screen
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3264657. -->
Reported by: [finex](https://www.drupal.org/user/40413)
Related to !98
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Some secondary toolbar menus goes off-screen.</p>
<p><img src="https://www.drupal.org/files/issues/2022-02-16/secondary%20menu%20off-screen.png" alt="menu cutted"></p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Open all secondary menu on the left.</p>
<p>I propose the following change to the toolbar_meta.scss:</p>
<pre>diff --git a/styles/components/toolbar_meta.scss b/styles/components/toolbar_meta.scss<br>index f005d3f..81c0ad5 100644<br>--- a/styles/components/toolbar_meta.scss<br>+++ b/styles/components/toolbar_meta.scss<br>@@ -246,11 +246,12 @@<br><br> .toolbar-tray {<br> position: absolute;<br>- left: 0;<br>+ left: auto;<br>+ right: 0;<br> width: 170px;<br> background-color: var(--colorGinLayer3Background);<br> border-bottom: 0 none;<br>- border-radius: 0 var(--ginBorderMedium) var(--ginBorderMedium) var(--ginBorderMedium);<br>+ border-radius: var(--ginBorderMedium) 0 var(--ginBorderMedium) var(--ginBorderMedium);<br> box-shadow: var(--ginShadowLevel2);<br><br> a {<br>@@ -293,13 +294,6 @@<br> }<br> }<br><br>- .toolbar-tray {<br>- left: auto;<br>- right: 0;<br>- border-radius: var(--ginBorderMedium) 0 var(--ginBorderMedium) var(--ginBorderMedium);<br>- }<br>-<br>-<br> // If custom user image<br> &:not(.has-user-icon) {<br> margin-right: -1.333em;</pre><p>What do you think?</p>
issue