Skip to content

Commit

Permalink
style: adjust padding on cdkMenus to prevent border cutoff (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrassa committed May 28, 2024
1 parent 7c7cace commit e51818e
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h1 skipTo>Cache Entries</h1>

<ng-template #actionsMenu>
<div
class="dropdown-menu py-0"
class="dropdown-menu"
id="cache-entry-{{ entry._id }}-action-menu"
attr.aria-labelledby="cache-entry-{{ entry._id }}-action-menu-btn"
cdkMenu
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h1 skipTo>EUAs</h1>
</button>
<ng-template #actionsMenu>
<div
class="dropdown-menu py-0"
class="dropdown-menu"
id="eua-{{ eua._id }}-action-menu"
attr.aria-labelledby="eua-{{ eua._id }}-action-menu-btn"
cdkMenu
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ <h1 skipTo>System Feedback</h1>
</button>
<ng-template #statusMenu>
<div
class="dropdown-menu py-0"
class="dropdown-menu"
id="feedback-{{ feedback._id }}-status-menu"
attr.aria-labelledby="feedback-{{ feedback._id }}-status-menu-btn"
cdkMenu
Expand Down Expand Up @@ -159,7 +159,7 @@ <h1 skipTo>System Feedback</h1>
</button>
<ng-template #assigneeMenu>
<div
class="dropdown-menu py-0"
class="dropdown-menu"
id="feedback-{{ feedback._id }}-assignee-menu"
attr.aria-labelledby="feedback-{{ feedback._id }}-assignee-menu-btn"
cdkMenu
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h1 skipTo>Messages</h1>
</button>
<ng-template #actionsMenu>
<div
class="dropdown-menu py-0"
class="dropdown-menu"
id="message-{{ message._id }}-action-menu"
attr.aria-labelledby="message-{{ message._id }}-action-menu-btn"
cdkMenu
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ <h1 skipTo>Users</h1>
</button>
<ng-template #actionsMenu>
<div
class="dropdown-menu py-0"
class="dropdown-menu"
id="user-{{ user._id }}-action-menu"
attr.aria-labelledby="user-{{ user._id }}-action-menu-btn"
cdkMenu
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/site-navbar/site-navbar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@

<ng-template #helpNav>
<div
class="nav-menu dropdown-menu py-0"
class="nav-menu dropdown-menu"
id="help-nav-menu"
aria-labelledby="help-nav-menu-btn"
cdkMenu
Expand Down
1 change: 0 additions & 1 deletion src/app/core/site-navbar/site-navbar.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ $nav-popover-width: 192px !default;
}

.nav-menu {
padding: 0;
width: $nav-popover-width;

.dropdown-item {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<span class="fa-solid fa-lg {{ themeOptions.get(selectedTheme()) }} ms-2"></span>
</a>
<ng-template #menu>
<div class="dropdown-menu py-0" id="color-mode-menu" aria-labelledby="color-mode-btn" cdkMenu>
<div class="dropdown-menu" id="color-mode-menu" aria-labelledby="color-mode-btn" cdkMenu>
@for (theme of themeOptions.keys(); track theme) {
<button
class="dropdown-item"
Expand Down

0 comments on commit e51818e

Please sign in to comment.