Skip to content
Snippets Groups Projects
Commit e59c39d3 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Limit the width of the dropdown a bit more

It should only span the whole width in mobile mode
parent d698a644
No related branches found
No related tags found
No related merge requests found
......@@ -253,7 +253,7 @@ export class Auth extends ScopedElementsMixin(VPULitElement) {
let viewportOffset = this.getBoundingClientRect();
let spaceToRIght = window.innerWidth - viewportOffset.left;
dropdown.setAttribute("style", `width: ${spaceToRIght - 10}px`);
dropdown.setAttribute("style", `width: ${spaceToRIght - 20}px`);
}
disconnectedCallback() {
......@@ -319,6 +319,7 @@ export class Auth extends ScopedElementsMixin(VPULitElement) {
.dropdown-menu {
display: none;
min-width: 5em;
max-width: 25em;
position: absolute;
z-index: 20;
border: solid 1px black;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment