From 66ddb5c032ece1234b721029cc3596d61d1db511 Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Thu, 23 Jul 2026 14:41:18 -0400 Subject: [PATCH] [Fix] fear tracker offset on appearance change (#2109) * Fix fear tracker offset on appearance change * Stealth fix countdown shift animation --- module/data/settings/Appearance.mjs | 3 +-- styles/less/ui/countdown/countdown.less | 3 ++- styles/less/ui/resources/resources.less | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/module/data/settings/Appearance.mjs b/module/data/settings/Appearance.mjs index 7fe3e90a..d32fae27 100644 --- a/module/data/settings/Appearance.mjs +++ b/module/data/settings/Appearance.mjs @@ -127,8 +127,7 @@ export default class DhAppearance extends foundry.abstract.DataModel { if (this.displayFear === 'hide') { ui.resources.close({ allowed: true }); } else { - ui.resources.render({ force: true }); - ui.resources.handleOffset(); + ui.resources.render({ force: true }).then(() => ui.resources.handleOffset()); } } diff --git a/styles/less/ui/countdown/countdown.less b/styles/less/ui/countdown/countdown.less index c6e79448..fa9319e9 100644 --- a/styles/less/ui/countdown/countdown.less +++ b/styles/less/ui/countdown/countdown.less @@ -21,9 +21,10 @@ width: 18.75rem; pointer-events: all; align-self: flex-end; - transition: 0.3s right ease-in-out; + transition: right 0.1s ease; display: flex; flex-direction: column; + right: 0; &::before { content: ' '; diff --git a/styles/less/ui/resources/resources.less b/styles/less/ui/resources/resources.less index 8aac2ba2..fb3a2ce1 100644 --- a/styles/less/ui/resources/resources.less +++ b/styles/less/ui/resources/resources.less @@ -155,7 +155,6 @@ body.theme-light { opacity: 0; transition: all 0.3s ease; } - .resource-bar { display: flex;