Skip to content

Commit

Permalink
feat(mainHeader): make the user menu panel always open to the left
Browse files Browse the repository at this point in the history
See: BEDS-221
  • Loading branch information
marcel-bitfly committed Aug 12, 2024
1 parent 62d89b2 commit 8dc89ba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
3 changes: 2 additions & 1 deletion frontend/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"conventionalCommits.scopes": [
"i18n",
"vscode",
"eslint"
"eslint",
"mainHeader"
],
"editor.rulers": [
80,
Expand Down
13 changes: 9 additions & 4 deletions frontend/components/bc/header/MainHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,13 @@ const userMenu = computed(() => {
/>
</BcLink>
</div>
<div
v-else-if="!isSmallScreen"
class="user-menu"
>
<div v-else-if="!isSmallScreen" class="user-menu">
<BcDropdown
:options="userMenu"
variant="header"
option-label="label"
class="menu-component"
panel-class="user-menu-panel"
>
<template #value>
<FontAwesomeIcon
Expand Down Expand Up @@ -378,6 +376,13 @@ $smallHeaderThreshold: 1024px;
}
}
}
:global(.user-menu-panel) {
// hack: panel should always get opened to the left, but this is not possible with component props
$widthThePanelHasEnoughSpaceToOpenToTheRight: 1558px;
@media screen and (min-width: $widthThePanelHasEnoughSpaceToOpenToTheRight) {
translate: -98px;
}
}
.burger {
height: 24px;
cursor: pointer;
Expand Down

0 comments on commit 8dc89ba

Please sign in to comment.