Skip to content

Commit

Permalink
Minor draft fixes, makes player names squeezable
Browse files Browse the repository at this point in the history
  • Loading branch information
slmnio committed Mar 20, 2023
1 parent 555bc96 commit 852bc7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions website/src/components/broadcast/DraftPlayer.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
<div class="draft-player" v-if="player && !player.dummy" :style="background" :data-player-id="player && player.id || 'empty'">
<div class="player-name">{{ player.name }}</div>
<Squeezable class="player-name">
<div>{{ player.name }}</div>
</Squeezable>
<div class="player-role flex-center" v-if="showIcon" v-html="getSVG(player.role)"></div>
<div class="player-badge" v-if="badge">
<ThemeLogo class="badge-logo" :theme="badge && badge.theme" icon-padding="0.2em" logo-size="w-50" />
Expand All @@ -15,10 +17,11 @@
import { logoBackground } from "@/utils/theme-styles";
import { getRoleSVG } from "@/utils/content-utils";
import ThemeLogo from "@/components/website/ThemeLogo";
import Squeezable from "@/components/broadcast/Squeezable.vue";
export default {
name: "DraftPlayer",
components: { ThemeLogo },
components: { Squeezable, ThemeLogo },
props: {
player: {},
theme: {},
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/broadcast/roots/DraftOverlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default {
dummy: false
}),
methods: {
insertDummies(players) {
insertDummies(players = []) {
if (!this.eachTeam) return players;
const dummyRecord = { dummy: true };
const dummiedPlayers = [];
Expand Down

0 comments on commit 852bc7e

Please sign in to comment.