summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/css/src/roster-editor/controlled-panel.scss4
-rw-r--r--src/css/src/shared/battle-characters/info-card.scss1
-rw-r--r--src/roster-editor/src/View/CharacterCard.elm65
3 files changed, 38 insertions, 32 deletions
diff --git a/src/css/src/roster-editor/controlled-panel.scss b/src/css/src/roster-editor/controlled-panel.scss
index 385f3be..c1480ce 100644
--- a/src/css/src/roster-editor/controlled-panel.scss
+++ b/src/css/src/roster-editor/controlled-panel.scss
@@ -34,6 +34,10 @@
padding: 2px;
}
+.roster-editor-atts > *
+{
+ justify-items: space-evenly;
+}
.roster-editor-invalid-character > .info-card-name,
.roster-editor-invalid-character > .character-card-name,
.roster-editor-glyph-board-problem > .character-card-glyph-board-name
diff --git a/src/css/src/shared/battle-characters/info-card.scss b/src/css/src/shared/battle-characters/info-card.scss
index 2ef980f..5529a74 100644
--- a/src/css/src/shared/battle-characters/info-card.scss
+++ b/src/css/src/shared/battle-characters/info-card.scss
@@ -158,4 +158,3 @@
flex-direction: row;
flex-wrap: wrap;
}
-
diff --git a/src/roster-editor/src/View/CharacterCard.elm b/src/roster-editor/src/View/CharacterCard.elm
index 81e4e9f..e462de9 100644
--- a/src/roster-editor/src/View/CharacterCard.elm
+++ b/src/roster-editor/src/View/CharacterCard.elm
@@ -356,43 +356,46 @@ get_relevant_atts omnimods atts =
(Html.Attributes.class "character-card-atts"),
(Html.Attributes.class "roster-editor-atts")
]
- (
- [
- (
- let
- damage_multiplier =
- (Battle.Struct.Attributes.get_damage_multiplier atts)
- in
- (Html.div
- [
- (Html.Attributes.class "omnimod-attack-mods")
- ]
- (List.map
- (
- \(s, i) ->
- (get_mod_html
- (
- s,
- (ceiling ((toFloat i) * damage_multiplier))
- )
+ [
+ (
+ let
+ damage_multiplier =
+ (Battle.Struct.Attributes.get_damage_multiplier atts)
+ in
+ (Html.div
+ [
+ (Html.Attributes.class "omnimod-attack-mods")
+ ]
+ (List.map
+ (
+ \(s, i) ->
+ (get_mod_html
+ (
+ s,
+ (ceiling ((toFloat i) * damage_multiplier))
)
)
- (Battle.Struct.Omnimods.get_attack_mods omnimods)
)
+ (Battle.Struct.Omnimods.get_attack_mods omnimods)
)
- ),
- (Html.div
- [
- (Html.Attributes.class "omnimod-defense-mods")
- ]
- (List.map
- (get_mod_html)
- (Battle.Struct.Omnimods.get_defense_mods omnimods)
)
+ ),
+ (Html.div
+ [
+ (Html.Attributes.class "omnimod-defense-mods")
+ ]
+ (List.map
+ (get_mod_html)
+ (Battle.Struct.Omnimods.get_defense_mods omnimods)
)
- ]
- ++ (Battle.View.Attribute.get_true_all_html atts)
- )
+ ),
+ (Html.div
+ [
+ (Html.Attributes.class "character-card-actual-attributes")
+ ]
+ (Battle.View.Attribute.get_true_all_html atts)
+ )
+ ]
)
--------------------------------------------------------------------------------