Skip to content

[SUMMER] feature/FOUR-15727 Options Ellipsis on tasks page and Launchpad #6912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 6, 2024
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
39 changes: 35 additions & 4 deletions resources/js/components/shared/EllipsisMenu.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<template>
<b-dropdown
v-if="filterActions.length > 0"
v-b-tooltip.hover="{ placement: 'bottom', title: 'Options', variant: 'secondary', customClass: 'ellipsis-tooltip' }"
:variant="variant ? variant : 'outlined-secondary'"
toggle-class="static-header"
:toggle-class="['static-header', { 'contracted-menu': !lauchpad }, { 'expanded-menu': lauchpad }]"
no-flip
lazy
right
no-caret
offset="0"
class="ellipsis-dropdown-main static-header"
:popper-opts="{ placement: 'bottom-end' }"
Expand All @@ -22,12 +24,14 @@
</span>
</template>
<template v-else-if="lauchpad" #button-content>
<i class="fas fa-ellipsis-h ellipsis-menu-icon p-0" />
<i class="fas fa-ellipsis-v ellipsis-menu-icon p-0 ellipsis-icon-v" />
<span>
{{ $t('Options') }}
</span>
</template>
<template v-else #button-content>
<span class="text-capitalize screen-toolbar-button">
<i class="fas fa-cog" />
{{ $t("Options") }}
<i class="fas fa-ellipsis-h ellipsis-menu-icon p-0" />
</span>
</template>
<div v-if="divider === true">
Expand Down Expand Up @@ -293,4 +297,31 @@ export default {
.static-header {
position: static !important;
}
.contracted-menu {
width: 40px;
height: 40px;
box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.15);
border-radius: 4px;
background-color: #FFFFFF;
}
.static-header:hover {
background-color: #EBEEF2;
border-radius: 4px;
}
.expanded-menu {
color: #556271;
text-transform: none;
border-radius: 4px;
font-size: 16px;
}
.ellipsis-icon-v {
height: 16px;
width: 16px;
}
.ellipsis-tooltip {
border-radius: 4px;
}
.ellipsis-tooltip .arrow {
display: none;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,7 @@
display: flex;
justify-content: center;
align-items: center;
background-color: white;
border: 1px solid #CDDDEE;
border-radius: 19px;
width: 32px;
height: 32px;
margin: 0px 8px;
margin-right: 5px;
}
.ellipsis-border .dropdown-toggle::after {
display:none;
Expand Down
Loading