Skip to content

Commit

Permalink
fix some minor glitches
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Aug 1, 2023
1 parent f446dbf commit b573a02
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/components/VolumeControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
<!-- sync button -->
<div
v-if="
player.type != PlayerType.GROUP &&
!childPlayer.synced_to &&
!childPlayer.group_childs.length &&
Object.values(api.players).filter((x) => !x.synced_to && x.can_sync_with.includes(childPlayer.player_id))
Expand Down Expand Up @@ -93,7 +94,7 @@
</v-menu>
</div>
<!-- unsync button -->
<div v-if="childPlayer.synced_to" class="syncbtn">
<div v-if="player.type != PlayerType.GROUP && childPlayer.synced_to" class="syncbtn">
<Button icon @click="api.playerCommandUnSync(childPlayer.player_id)">
<v-icon>mdi-link-variant-off</v-icon>
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</v-badge>
<v-icon v-else :color="props.color ? color : ''" :size="24">mdi-speaker</v-icon>
<span v-if="activePlayerQueue && getBreakpointValue('bp6')" class="line-clamp-1 no_transform">
{{ truncateString(activePlayerQueue?.display_name, 8) }}
{{ truncateString(activePlayerQueue?.display_name, getBreakpointValue('bp7') ? 16 : 8) }}
</span>
</Button>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<ListItem
density="compact"
two-line
:title="store.selectedPlayer?.name.substring(0, 25)"
:title="store.selectedPlayer?.display_name.substring(0, 25)"
:subtitle="$t('state.' + store.selectedPlayer?.state)"
>
<template #prepend>
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/default/PlayerSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
clipped
temporary
touchless
width="275"
width="290"
style="z-index: 9999"
>
<!-- heading with Players as title-->
Expand Down Expand Up @@ -54,7 +54,7 @@
</template>
<template #title>
<div>
<b>{{ truncateString(getPlayerName(player), 18) }}</b>
<b>{{ truncateString(getPlayerName(player), 20) }}</b>
</div>
</template>
<template #subtitle>
Expand Down

0 comments on commit b573a02

Please sign in to comment.