Add toggle mark in Reality reminder panel

and add cursor:pointer when it is clickable.
This commit is contained in:
Hirame1 2022-04-06 10:51:01 +07:00
parent ee2c383286
commit 45b8d2f0d5
2 changed files with 15 additions and 1 deletions

View File

@ -637,6 +637,10 @@ button:focus {
padding: 1rem;
}
.c-reality-reminder-pointer {
cursor: pointer;
}
@keyframes a-celstial-reward-glow {
0% { box-shadow: inset 0 0 4rem var(--color-celestials) }
50% { box-shadow: inset 0 0 0 }

View File

@ -60,6 +60,15 @@ export default {
},
clickText() {
return `(click to ${this.isExpanded ? "collapse" : "expand"})`;
},
realityReminderClass() {
return {
"c-reality-reminder": true,
"c-reality-reminder-pointer": this.canReality && "this.suggestions.length !== 0",
};
},
dropDownIconClass() {
return this.isExpanded ? "far fa-minus-square" : "far fa-plus-square";
}
},
created() {
@ -93,7 +102,7 @@ export default {
<template>
<div
v-if="isVisible"
class="c-reality-reminder"
:class="realityReminderClass"
:style="styleObject"
@click="clicked"
>
@ -104,6 +113,7 @@ export default {
You are ready to complete this Reality!
</span>
<span v-else>
<i :class="dropDownIconClass" />
You have {{ quantifyInt("thing", suggestions.length) }}
you may want to do before Reality. {{ clickText }}
<div