Skip to content

Commit 5aa861d

Browse files
authored
Merge pull request #32 from Valforte/Valforte-patch-1
Add images to README for visual enhancement
2 parents bdd7f34 + 50106d5 commit 5aa861d

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ Example markdown once you have the image:
3333
or
3434
![DM and Player Views](docs/screenshot.png)
3535
-->
36+
## DM View:
37+
<img width="1833" height="1521" alt="image" src="https://github.com/user-attachments/assets/dcd346cb-8ef0-4b48-b8af-5c8bef17e617" />
38+
39+
## Player View:
40+
<img width="1833" height="1066" alt="image" src="https://github.com/user-attachments/assets/249fbe70-b183-4603-b277-71fffe725087" />
41+
3642

3743
## Features
3844

src/PlayerTable.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ defineProps<{
1313
combatants: Combatant[]
1414
}>()
1515
16+
const currentConditionName = ref<string | undefined>('')
1617
const currentConditionTooltip = ref<string | undefined>('')
1718
1819
function getConditionTooltip(condition: string, setTooltip: boolean = false): string | undefined {
@@ -39,12 +40,14 @@ function getConditionTooltip(condition: string, setTooltip: boolean = false): st
3940
}
4041
4142
if (setTooltip) {
43+
currentConditionName.value = condition
4244
currentConditionTooltip.value = currentCondition
4345
}
4446
return currentCondition
4547
}
4648
4749
function hideConditionTooltip(): void {
50+
currentConditionName.value = ''
4851
currentConditionTooltip.value = ''
4952
}
5053
</script>
@@ -122,7 +125,10 @@ function hideConditionTooltip(): void {
122125
<div class="toast toast-center" v-if="currentConditionTooltip">
123126
<div class="alert alert-info text-lg text-justify">
124127
<div class="badge badge-info shadow-sm/50 p-1 absolute top-[-7px] right-1" @click="hideConditionTooltip"><Icon icon="tabler:x" /></div>
125-
<span>{{currentConditionTooltip}}</span>
128+
<div>
129+
<p class="text-base-300 text-xl p-2">{{currentConditionName}}</p>
130+
<p class="text-base-100/80">{{currentConditionTooltip}}</p>
131+
</div>
126132
</div>
127133
</div>
128134
</div>

0 commit comments

Comments
 (0)