Skip to content

Commit

Permalink
Make avatar defense values uniform width to avoid visual jump on hover
Browse files Browse the repository at this point in the history
Closes #16
  • Loading branch information
KitCat420 committed Jun 22, 2024
1 parent 7a84bd0 commit 3cb23de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Only allow weapons with attack actions and attacks for weapon sets
- Remove background skills from drawer when not active
- Fix movement calculation for diagonals
- Make avatar defense values uniform width to avoid visual jump on hover

## 0.9.4
- Top-align portrait tooltips to avoid overlapping actual text
Expand Down
8 changes: 4 additions & 4 deletions styles/ech-pf1.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
flex-direction: column;
}

.extended-combat-hud .portrait-hud:hover .portrait-stat-block.stacked-stats > .portrait-stat.hidden,
.extended-combat-hud .portrait-stat-block.stacked-stats > .portrait-stat {
height: 2rem;
transition: height 500ms, font-size 500ms;
Expand All @@ -35,12 +36,11 @@
}

.extended-combat-hud .portrait-stat-block.stacked-stats > .portrait-stat.hidden {
display: none;
overflow: hidden;
height: 0;
padding: 0 0.35rem;
}

.extended-combat-hud .portrait-hud:hover .portrait-stat-block.stacked-stats > .portrait-stat.hidden {
display: flex;
}

.extended-combat-hud .portrait-stat-block.stacked-stats.left {
left: 0;
Expand Down

0 comments on commit 3cb23de

Please sign in to comment.