Skip to content

Commit

Permalink
Merge pull request #1785 from OpenC3/menu-button-icon
Browse files Browse the repository at this point in the history
Fix menu button height when zoomed out
  • Loading branch information
ryan-pratt authored Dec 20, 2024
2 parents 0558733 + fcae664 commit 34889a4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@
v-bind="props"
variant="outlined"
class="mx-1 menu-button"
:text="menu.label"
:data-test="formatDT(`${title} ${menu.label}`)"
>
<span v-text="menu.label" />
<v-icon class="myicon" end> mdi-menu-down </v-icon>
<template v-slot:append>
<v-icon class="menu-button-icon"> mdi-menu-down </v-icon>
</template>
</v-btn>
</template>
<v-list>
Expand Down Expand Up @@ -184,22 +186,21 @@ export default {
.menu-button {
border-color: var(--color-border-interactive-muted) !important;
background-color: var(--color-background-base-default) !important;
padding-right: 3px !important;
}
span.v-btn__content span {
padding-right: 5px;
}
.list-action :deep(label) {
color: white;
padding-left: 20px;
}
.myicon {
.menu-button-icon {
background-color: var(--color-background-surface-selected);
border: 1px solid currentColor;
border-radius: 3px;
height: 36px !important;
width: 36px !important;
height: calc(var(--v-btn-height));
width: calc(var(--v-btn-height));
margin-top: -1px;
margin-bottom: -1px;
margin-left: 3px; /* parent's left margin (4px) - border (1px) */
margin-right: -13px; /* parent's right margin (4px) - border (1px) - padding (16px) */
}
.list-action :deep(label) {
color: white;
padding-left: 20px;
}
.v-list :deep(.v-label) {
margin-left: 5px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@
<script>
import { formatDistanceToNow } from 'date-fns'
import { Api, Cable } from '@openc3/js-common/services'
import { Icons } from '@/components'
import {
AstroStatusColors,
AstroStatusIndicator,
Expand Down

0 comments on commit 34889a4

Please sign in to comment.