mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-22 12:11:58 +00:00
Add toggle mark in Reality reminder panel
and add cursor:pointer when it is clickable.
This commit is contained in:
parent
ee2c383286
commit
45b8d2f0d5
@ -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 }
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user