Skip to content

Commit

Permalink
Adds max-height option to Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Nov 26, 2024
1 parent 43da90d commit 9ba583a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/lib/components/common/Menu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
padding: 0.25rem;
gap: 0.25rem;
min-width: 16rem;
max-height: var(--max-height, auto);
overflow-y: scroll;
}
:global(.menu.small) {
color: var(--gray-3);
Expand Down
3 changes: 1 addition & 2 deletions src/lib/components/navigation/OrgMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
<p class="orgname">{active_org.name}</p>
<span class="arrow" slot="end"><ChevronDown12 /></span>
</SidebarItem>
<Menu>
<Menu --max-height="24rem">
{#each otherOrgs as otherOrg}
<SidebarItem
hover
Expand Down Expand Up @@ -225,7 +225,6 @@
color: var(--black, #233944);
font-family: var(--font-sans, "Source Sans Pro");
font-weight: var(--font-semibold, 600);
line-height: 1rem;
margin-bottom: 0;
}
Expand Down
3 changes: 0 additions & 3 deletions src/lib/components/navigation/stories/OrgMenu.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
export const meta = {
title: "Components / Navigation / Org Menu",
component: OrgMenu,
parameters: {
layout: "centered",
},
};
</script>

Expand Down

0 comments on commit 9ba583a

Please sign in to comment.