Skip to content

Commit 18c18fb

Browse files
committed
fix: chess title component
1 parent c4c0c80 commit 18c18fb

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

components/ChessTitle.vue

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<template>
22
<v-tooltip :text="title" location="top">
33
<template #activator="{ props }">
4-
<span v-bind="props" ref="titleElement" class="badge text-bg-danger title-badge" data-bs-toggle="tooltip" :title="title">{{ abbreviation() }}</span>
4+
<v-chip v-bind="props" ref="titleElement" variant="flat" color="red" :size="size">
5+
<b>{{ abbreviation() }}</b>
6+
</v-chip>
57
</template>
68
</v-tooltip>
79
</template>
@@ -17,6 +19,10 @@ export default defineComponent({
1719
title: {
1820
type: String,
1921
required: true
22+
},
23+
size: {
24+
type: String,
25+
default: 'default'
2026
}
2127
},
2228
@@ -42,7 +48,5 @@ export default defineComponent({
4248
</script>
4349

4450
<style scoped>
45-
.title-badge {
46-
padding: 0.15em 0.3em!important;
47-
}
51+
4852
</style>

pages/uscf/member/[id].vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
US Chess Member: Loading...
55
</h1>
66
<h1 v-else>
7-
US Chess Member: <ChessTitle v-if="title() !== 'Untitled'" :title="title()" /> {{ memberInfo.member.name }}
7+
US Chess Member: <ChessTitle v-if="title() !== 'Untitled'" :title="title()" size="large" /> {{ memberInfo.member.name }}
88
</h1>
99

1010
<p>Member ID: {{ memberId }}</p>

0 commit comments

Comments
 (0)