|
42 | 42 | t('sideToolbar.queueProgressOverlay.running') |
43 | 43 | }}</span> |
44 | 44 | </span> |
45 | | - <button |
| 45 | + <IconButton |
46 | 46 | v-if="runningCount > 0" |
47 | 47 | v-tooltip.top="cancelJobTooltip" |
48 | | - class="inline-flex size-6 cursor-pointer items-center justify-center rounded border-0 bg-secondary-background p-0 transition-colors hover:bg-destructive-background" |
| 48 | + type="secondary" |
| 49 | + size="sm" |
| 50 | + class="size-6 bg-secondary-background hover:bg-destructive-background" |
49 | 51 | :aria-label="t('sideToolbar.queueProgressOverlay.interruptAll')" |
50 | 52 | @click="$emit('interruptAll')" |
51 | 53 | > |
52 | 54 | <i |
53 | 55 | class="icon-[lucide--x] block size-4 leading-none text-text-primary" |
54 | 56 | /> |
55 | | - </button> |
| 57 | + </IconButton> |
56 | 58 | </div> |
57 | 59 |
|
58 | 60 | <div class="flex items-center gap-2"> |
|
62 | 64 | t('sideToolbar.queueProgressOverlay.queuedSuffix') |
63 | 65 | }}</span> |
64 | 66 | </span> |
65 | | - <button |
| 67 | + <IconButton |
66 | 68 | v-if="queuedCount > 0" |
67 | 69 | v-tooltip.top="clearQueueTooltip" |
68 | | - class="inline-flex size-6 cursor-pointer items-center justify-center rounded border-0 bg-secondary-background p-0 transition-colors hover:bg-destructive-background" |
| 70 | + type="secondary" |
| 71 | + size="sm" |
| 72 | + class="size-6 bg-secondary-background hover:bg-destructive-background" |
69 | 73 | :aria-label="t('sideToolbar.queueProgressOverlay.clearQueued')" |
70 | 74 | @click="$emit('clearQueued')" |
71 | 75 | > |
72 | 76 | <i |
73 | 77 | class="icon-[lucide--list-x] block size-4 leading-none text-text-primary" |
74 | 78 | /> |
75 | | - </button> |
| 79 | + </IconButton> |
76 | 80 | </div> |
77 | 81 | </div> |
78 | 82 |
|
79 | | - <button |
80 | | - class="inline-flex h-6 min-w-[120px] flex-1 cursor-pointer items-center justify-center rounded border-0 bg-secondary-background px-2 py-0 text-[12px] text-text-primary hover:bg-secondary-background-hover hover:opacity-90" |
| 83 | + <TextButton |
| 84 | + class="h-6 min-w-[120px] flex-1 px-2 py-0 text-[12px]" |
| 85 | + type="secondary" |
| 86 | + :label="t('sideToolbar.queueProgressOverlay.viewAllJobs')" |
81 | 87 | @click="$emit('viewAllJobs')" |
82 | | - > |
83 | | - {{ t('sideToolbar.queueProgressOverlay.viewAllJobs') }} |
84 | | - </button> |
| 88 | + /> |
85 | 89 | </div> |
86 | 90 | </div> |
87 | 91 | </template> |
|
90 | 94 | import { computed } from 'vue' |
91 | 95 | import { useI18n } from 'vue-i18n' |
92 | 96 |
|
| 97 | +import IconButton from '@/components/button/IconButton.vue' |
| 98 | +import TextButton from '@/components/button/TextButton.vue' |
93 | 99 | import { buildTooltipConfig } from '@/composables/useTooltipConfig' |
94 | 100 |
|
95 | 101 | defineProps<{ |
|
0 commit comments