Skip to content

Commit

Permalink
fix: add calculated max height and overflow auto (#92)
Browse files Browse the repository at this point in the history
* fix: add calculated max height and overflow auto

* fix: add flex display to flyout menu
  • Loading branch information
edimitchel committed Apr 5, 2023
1 parent 3e9e402 commit 1741d29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/styles/vt-flyout.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@
}

.vt-flyout-menu {
display: flex;
position: absolute;
top: calc(var(--vt-nav-height) / 2 + 15px);
right: 0;
opacity: 0;
visibility: hidden;
transform: translateY(-4px);
transition: opacity .25s, visibility .25s, transform .25s;
}
max-height: calc(100vh - var(--vt-nav-height));
}
1 change: 1 addition & 0 deletions src/core/styles/vt-menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
background: var(--vt-c-bg);
box-shadow: var(--vt-shadow-3);
transition: background-color .5s;
overflow: auto;
}

.dark .vt-menu {
Expand Down

0 comments on commit 1741d29

Please sign in to comment.