Skip to content

Commit

Permalink
Merge pull request #51 from Uscreen-video/next
Browse files Browse the repository at this point in the history
feat(): added ability to configure menu max-height via CSS vars
  • Loading branch information
timaramazanov authored Jun 17, 2024
2 parents 17b15b6 + 1dbac57 commit c0b0254
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/video-button/Video-button.styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
--menu-item-color-active: $menu-item-color-active;
--menu-item-background-hover: var(--primary, $menu-item-background-hover);
--menu-item-color-hover: $menu-item-color-hover;
--menu-max-height: auto;

--size: var(--button-size);
}
Expand Down Expand Up @@ -73,6 +74,8 @@ button {
height: 0;
overflow: hidden;
user-select: none;
max-height: var(--menu-max-height);
overflow: auto;
& .inner {
padding: 6px 12px;
}
Expand All @@ -83,8 +86,7 @@ button {

@media (max-width: 640px) {
:host(:not([is-fullscreen])) .menu {
max-height: 150px;
overflow: auto;
--menu-max-height: 150px;
}
}

Expand Down

0 comments on commit c0b0254

Please sign in to comment.