Skip to content

Commit

Permalink
maved battles
Browse files Browse the repository at this point in the history
  • Loading branch information
Cufee committed Jul 11, 2024
1 parent 652a3cf commit b29132a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions internal/stats/prepare/period/v1/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ type overviewColumnBlocks struct {

var overviewBlocks = []overviewColumnBlocks{
{[]common.Tag{common.TagDamageRatio, common.TagAvgDamage, common.TagAccuracy}, BlockFlavorDefault},
{[]common.Tag{common.TagWN8, common.TagBattles}, BlockFlavorSpecial},
{[]common.Tag{TagAvgTier, common.TagWinrate, common.TagSurvivalPercent}, BlockFlavorDefault},
{[]common.Tag{common.TagWN8}, BlockFlavorSpecial},
{[]common.Tag{TagAvgTier, common.TagWinrate, common.TagBattles}, BlockFlavorDefault},
}
var highlights = []common.Highlight{common.HighlightBattles, common.HighlightWN8, common.HighlightAvgDamage}

Expand Down
2 changes: 1 addition & 1 deletion internal/stats/prepare/period/v1/preset.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func presetToBlock(preset common.Tag, stats frame.StatsFrame, vehicles map[strin
block.Data.Flavor = BlockFlavorSpecial

case common.TagBattles:
block.Data.Flavor = BlockFlavorSpecial
block.Data.Flavor = BlockFlavorSecondary

case common.TagSurvivalRatio:
block.Data.Flavor = BlockFlavorSecondary
Expand Down
2 changes: 1 addition & 1 deletion internal/stats/render/period/v1/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func overviewCardStyle() common.Style {

func overviewCardBlocksStyle(width float64) common.Style {
style := defaultCardStyle(width)
style.AlignItems = common.AlignItemsEnd
style.AlignItems = common.AlignItemsCenter
style.Direction = common.DirectionHorizontal
style.JustifyContent = common.JustifyContentSpaceAround
style.PaddingY = 25
Expand Down

0 comments on commit b29132a

Please sign in to comment.