Skip to content

Commit

Permalink
portrait bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lunapiresfernandescefet committed Mar 18, 2022
1 parent 85f4b3f commit 4613083
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/scripts/portrait.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@

socket.on('environment change', data => {
const timeout = 100;
$('.container.switchable .text').fadeOut(timeout);
$('.container.switchable').fadeOut(timeout);
setTimeout(() => {
switch (data.mode) {
case 'idle':
Expand Down
4 changes: 2 additions & 2 deletions templates/views/portrait.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
</div>
</div>

<div class="container" id="idleText" {{#if onCombat}}style="display: none;" {{/if}}>
<div class="container switchable" id="idleText" {{#if onCombat}}style="display: none;" {{/if}}>
<div class="name top">{{name}}</div>
</div>

<div class="container" id="combatText" {{#unless onCombat}}style="display: none;" {{/unless}}>
<div class="container switchable" id="combatText" {{#unless onCombat}}style="display: none;" {{/unless}}>
<div class="combat">
<div class="health top">{{attributes.0.value}}/{{attributes.0.total_value}}</div>
<div class="sanity top">{{attributes.1.value}}/{{attributes.1.total_value}}</div>
Expand Down

0 comments on commit 4613083

Please sign in to comment.