Skip to content

Commit

Permalink
Fix: Adjust user menu for larger content
Browse files Browse the repository at this point in the history
If the content of the user menu drop down is wider than 10 pixels it flies out of the content
window.
  • Loading branch information
markusguenther committed Mar 9, 2021
1 parent 4a23ab5 commit 770905b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/Private/Layouts/BackendModule.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{namespace neos=Neos\Neos\ViewHelpers}
<div class="neos-content neos-indented neos-fluid-container" data-csrf-Token="{f:security.csrfToken()}">
<script src="{f:uri.resource(package: 'Unikka.LoginAs', path: 'Javascript/Main.js')}"></script>
<link rel="stylesheet" href="{f:uri.resource(package: 'Unikka.LoginAs', path: 'Stylesheets/Styles.css')}">

<f:render section="subtitle" optional="1" />

Expand All @@ -18,6 +19,5 @@
</f:if>
</f:validation.results>

backend module
<f:render section="content" />
</div>
1 change: 1 addition & 0 deletions Resources/Private/Layouts/BackendSubModule.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<div class="neos-content neos-container-fluid" data-csrf-Token="{f:security.csrfToken()}">
<script src="{f:uri.resource(package: 'Unikka.LoginAs', path: 'Javascript/Main.js')}"></script>
<link rel="stylesheet" href="{f:uri.resource(package: 'Unikka.LoginAs', path: 'Stylesheets/Styles.css')}">

<f:render section="subtitle" optional="1" />

Expand Down
4 changes: 4 additions & 0 deletions Resources/Public/Stylesheets/Styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.neos .neos-dropdown-menu {
left: auto!important;
min-width: 100%!important;
}

0 comments on commit 770905b

Please sign in to comment.