Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions frontend/public/icons/crowd-icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function doEditProfile() {
@apply text-gray-500;
}

.svg-icon path {
use {
fill: #6b7280;
}
}
Expand Down
9 changes: 9 additions & 0 deletions frontend/src/modules/layout/components/menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -535,4 +535,13 @@ const classFor = (path, exact = false) => {
@apply flex gap-1.5 items-center;
}
}

// Menu popovers
.popover-item.selected {
background-color: rgba(253, 237, 234, 0.5);

& .plan {
@apply text-brand-400;
}
}
</style>
82 changes: 35 additions & 47 deletions frontend/src/modules/layout/components/support-dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,79 +2,79 @@
<el-popover
placement="right-end"
:width="230"
trigger="click"
trigger="hover"
popper-class="support-popover"
@show="isDropdownOpen = true"
@hide="isDropdownOpen = false"
>
<template #reference>
<div class="w-full">
<el-tooltip
:disabled="!isCollapsed || isDropdownOpen"
effect="dark"
placement="right"
raw-content
popper-class="custom-support-menu-tooltip"
content="Support"
<div
class="cursor-pointer flex w-full items-center bg-white hover:bg-gray-50 rounded-md"
:class="
isDropdownOpen ? 'bg-gray-50' : 'bg-white'
"
>
<div
class="cursor-pointer flex w-full items-center bg-white hover:bg-gray-50"
:class="
isDropdownOpen ? 'bg-gray-50' : 'bg-white'
"
>
<div class="el-menu-item">
<i class="ri-question-line"></i>
<span v-if="!isCollapsed"> Support</span>
</div>
<div class="el-menu-item">
<i class="ri-question-line"></i>
<span v-if="!isCollapsed">Help & support</span>
</div>
</el-tooltip>
</div>
</div>
</template>

<div class="flex flex-col gap-1 mb-1">
<div class="popover-item">
<a
class="flex grow items-center leading-none justify-between"
href="https://docs.crowd.dev"
target="_blank"
<a href="https://docs.crowd.dev" target="_blank">
<div
class="popover-item flex grow items-center leading-none justify-between"
>
<div class="flex gap-2">
<i
class="text-base text-gray-400 ri-book-open-line"
></i>
<span class="text-xs">
<span class="text-xs text-gray-900">
<app-i18n code="external.docs"></app-i18n
></span>
</div>

<i
class="text-base ri-external-link-line text-gray-300"
></i>
</a>
</div>
</div>
</a>

<div class="popover-item">
<a
class="flex grow items-center leading-none justify-between"
href="https://crowd.dev/discord"
target="_blank"
<a href="https://crowd.dev/discord" target="_blank">
<div
class="popover-item flex grow items-center leading-none justify-between"
>
<div class="flex gap-2">
<app-svg
name="discord"
class="w-4 h-4 svg-icon"
/>
<span class="text-xs">
<span class="text-xs text-gray-900">
<app-i18n code="external.community"></app-i18n
></span>
</div>

<i
class="text-base ri-external-link-line text-gray-300"
></i>
</a>
</div>
</div>
</a>

<a href="mailto:[email protected]">
<div class="popover-item">
<div class="flex gap-2 items-center">
<i
class="text-base text-gray-400 ri-mail-line"
></i>
<span class="text-xs text-gray-900"
>Contact us</span
>
</div>
</div>
</a>
</div>
</el-popover>
</template>
Expand Down Expand Up @@ -107,16 +107,4 @@ const isCollapsed = computed(
box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.2) !important;
margin-left: 12px !important;
}

.popover-item.selected {
background-color: rgba(253, 237, 234, 0.5);

& .plan {
@apply text-brand-400;
}
}

.custom-support-menu-tooltip {
margin-left: -3px !important;
}
</style>
3 changes: 2 additions & 1 deletion frontend/src/shared/svg/svg.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<div class="flex">
<svg v-bind="$attrs">
<use
:xlink:href="`/icons/crowd-icons.svg?#${name}`"
:href="`/icons/crowd-icons.svg?#${name}`"
fill="#9CA3AF"
/>
</svg>
</div>
Expand Down