diff --git a/client/InitiativeList/CombatantRow.tsx b/client/InitiativeList/CombatantRow.tsx
index aa73a956..6d33b028 100644
--- a/client/InitiativeList/CombatantRow.tsx
+++ b/client/InitiativeList/CombatantRow.tsx
@@ -137,28 +137,31 @@ export function CombatantRow(props: CombatantRowProps) {
-
{
- commandContext.ApplyDamageToCombatant(props.combatantState.Id);
- event.stopPropagation();
- }}
- >
-
-
- {renderHPText(props)}
- {DisplayHPBar && (
-
+ |
+ {
+ commandContext.ApplyDamageToCombatant(props.combatantState.Id);
+ event.stopPropagation();
+ }}
+ >
+
-
- )}
+
+ {renderHPText(props)}
+ {DisplayHPBar && (
+
+
+
+ )}
+
+
|
diff --git a/client/PlayerView/components/PlayerViewCombatant.tsx b/client/PlayerView/components/PlayerViewCombatant.tsx
index 1ef4c56b..e5128aab 100644
--- a/client/PlayerView/components/PlayerViewCombatant.tsx
+++ b/client/PlayerView/components/PlayerViewCombatant.tsx
@@ -53,12 +53,12 @@ export class PlayerViewCombatant extends React.Component
this.props.suggestDamage(this.props.combatant)}
dangerouslySetInnerHTML={{ __html: this.props.combatant.HPDisplay }}
diff --git a/lesscss/base/colors.less b/lesscss/base/colors.less
index 38b6a4fa..918614e9 100644
--- a/lesscss/base/colors.less
+++ b/lesscss/base/colors.less
@@ -91,7 +91,7 @@
--modal-bg: rgba(0, 0, 0, 0.7);
- .combatant__hp {
+ .combatant__hp-inner {
filter: brightness(2.5);
}
}
diff --git a/lesscss/components/combatants.less b/lesscss/components/combatants.less
index 55f64fd4..5e9f7e64 100644
--- a/lesscss/components/combatants.less
+++ b/lesscss/components/combatants.less
@@ -84,10 +84,10 @@
}
}
- .combatant .combatant__hp {
- transition: border @transition-hover;
+ .combatant .combatant__hp-outer {
+ transition: box-shadow @transition-hover;
&:hover {
- border-color: unset;
+ box-shadow: 0 0 0 2px var(--hover-hp-red);
}
}
}
@@ -291,7 +291,6 @@
.combatant__hp {
width: 5rem;
justify-content: center;
- border: 1px dashed transparent;
grid-area: hp;
@media (max-width: @medium) {
diff --git a/lesscss/pages/player-view.less b/lesscss/pages/player-view.less
index a533999e..4a97561c 100644
--- a/lesscss/pages/player-view.less
+++ b/lesscss/pages/player-view.less
@@ -33,9 +33,14 @@
.combatant__hp {
flex-basis: 10%;
align-items: center;
- &.show-hover:hover {
- background-color: var(--hover-hp-red);
- }
+ }
+
+ .combatant__hp-outer {
+ transition: box-shadow @transition-hover;
+ }
+
+ .combatant__hp-outer.show-hover:hover {
+ box-shadow: 0 0 0 2px var(--hover-hp-red);
}
.combatant__portrait {
|