Skip to content

Commit

Permalink
fix: adjust button tooltips to same style
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Stainbrook <[email protected]>
  • Loading branch information
rackrick committed Sep 19, 2024
1 parent 6caeca5 commit 098873e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
35 changes: 23 additions & 12 deletions src/components/panels/HistoryListPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,20 @@
dense />
</v-col>
<v-col class="offset-4 col-4 d-flex align-center justify-end">
<template v-if="selectedJobs.length">
<v-btn
:title="$t('History.Delete')"
color="error"
class="px-2 minwidth-0 ml-3"
@click="deleteSelectedDialog = true">
<v-icon>{{ mdiDelete }}</v-icon>
</v-btn>
</template>
<v-tooltip top>
<template #activator="{ on, attrs }" v-if="selectedJobs.length">
<v-btn
:title="$t('History.Delete')"
color="error"
class="px-2 minwidth-0 ml-3"
v-bind="attrs"
v-on="on"
@click="deleteSelectedDialog = true">
<v-icon>{{ mdiDelete }}</v-icon>
</v-btn>
</template>
<span>{{ $t('History.Delete') }}</span>
</v-tooltip>
<v-tooltip top>
<template #activator="{ on, attrs }">
<v-btn
Expand Down Expand Up @@ -58,10 +63,16 @@
</v-tooltip>
<v-menu :offset-y="true" :close-on-content-click="false">
<template #activator="{ on, attrs }">
<v-btn class="px-2 minwidth-0 ml-3" v-bind="attrs" v-on="on">
<v-icon>{{ mdiCog }}</v-icon>
</v-btn>
<v-tooltip top>
<template #activator="{ on: onToolTip }">
<v-btn class="px-2 minwidth-0 ml-3" v-bind="attrs" v-on="{ ...on, ...onToolTip }">
<v-icon>{{ mdiCog }}</v-icon>
</v-btn>
</template>
<span>{{ $t('History.Settings') }}</span>
</v-tooltip>
</template>
<span>{{ $t('History.Settings') }}</span>
<v-list>
<v-list-item class="minHeight36">
<v-checkbox
Expand Down
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@
"SelectedFilamentUsed": "Selected Filament Used",
"SelectedJobs": "Selected Jobs",
"SelectedPrinttime": "Selected Print Time",
"Settings": "Settings",
"Slicer": "Slicer",
"SlicerVersion": "Slicer Version",
"StartTime": "Start Time",
Expand Down

0 comments on commit 098873e

Please sign in to comment.