Skip to content

Commit

Permalink
Merge pull request #1491 from cgjgh/Button-Group-Wrap
Browse files Browse the repository at this point in the history
Button Group Wrap
  • Loading branch information
joepavitt authored Nov 29, 2024
2 parents 75c7e62 + db7f31f commit f07d253
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/widgets/ui-button-group/UIButtonGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="nrdb-ui-button-group-wrapper">
<!-- eslint-disable-next-line vue/no-v-html -->
<label v-if="label" class="v-label" v-html="label" />
<v-btn-toggle v-model="selection" mandatory divided :rounded="props.rounded ? 'xl' : ''" :color="selectedColor" :disabled="!state.enabled" @update:model-value="onChange(selection)">
<v-btn-toggle v-model="selection" class="d-flex flex-wrap" mandatory divided :rounded="props.rounded ? 'xl' : ''" :color="selectedColor" :disabled="!state.enabled" @update:model-value="onChange(selection)">
<v-btn v-for="option in options" :key="option.value" :value="option.value">
<template v-if="option.icon && option.label !== undefined && option.label !== ''" #prepend>
<v-icon size="x-large" :icon="`mdi-${option.icon.replace(/^mdi-/, '')}`" />
Expand Down Expand Up @@ -154,6 +154,7 @@ export default {
width: max-content;
border-width: thin;
border-color: rgba(var(--v-border-color), var(--v-border-opacity));
min-height: fit-content;
}
/* default styling for an unselected option */
.nrdb-ui-button-group-wrapper .v-btn--variant-elevated {
Expand Down

0 comments on commit f07d253

Please sign in to comment.