From 77a158974c3c70e148777a34c80af5b83d6354cc Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 24 Dec 2022 23:32:39 -0800 Subject: [PATCH] CSS updates * Add conflict code to Dialog/index.scss for simplicity. * A bit of cleanup on styles to make them more robust. --- components/CharacterConflictModal/index.scss | 63 ------------- components/CharacterConflictModal/index.tsx | 16 ++-- components/Dialog/index.scss | 97 ++++++++++++++++++++ components/WeaponConflictModal/index.scss | 0 4 files changed, 106 insertions(+), 70 deletions(-) create mode 100644 components/WeaponConflictModal/index.scss diff --git a/components/CharacterConflictModal/index.scss b/components/CharacterConflictModal/index.scss index 866ec8f7..e69de29b 100644 --- a/components/CharacterConflictModal/index.scss +++ b/components/CharacterConflictModal/index.scss @@ -1,63 +0,0 @@ -.Conflict.Dialog { - & > p { - line-height: 1.2; - max-width: 400px; - } - img { - border-radius: 1rem; - } - - .arrow { - color: $grey-55; - font-size: 4rem; - text-align: center; - } - - .character { - display: flex; - flex-direction: column; - gap: $unit; - text-align: center; - width: 12rem; - font-weight: $medium; - } - - .diagram { - display: grid; - grid-template-columns: 1fr 1fr 1fr; - align-items: center; - - ul { - display: flex; - flex-direction: column; - gap: $unit * 2; - } - } - - footer { - display: flex; - flex-direction: row; - gap: $unit; - - .Button { - font-size: $font-regular; - padding: ($unit * 1.5) ($unit * 2); - width: 100%; - - &.btn-disabled { - background: $grey-90; - color: $grey-70; - cursor: not-allowed; - } - - &:not(.btn-disabled) { - background: $grey-90; - color: $grey-50; - - &:hover { - background: $grey-80; - } - } - } - } -} diff --git a/components/CharacterConflictModal/index.tsx b/components/CharacterConflictModal/index.tsx index 5faa7ebc..4480ef28 100644 --- a/components/CharacterConflictModal/index.tsx +++ b/components/CharacterConflictModal/index.tsx @@ -78,7 +78,7 @@ const CharacterConflictModal = (props: Props) => { Only one version of a character can be included in each party. Do you want to change your party members?

-
+
    {props.conflictingCharacters?.map((character, i) => (
  • @@ -91,12 +91,14 @@ const CharacterConflictModal = (props: Props) => { ))}
-
- {props.incomingCharacter?.name.en} - {props.incomingCharacter?.name.en} +
+
+ {props.incomingCharacter?.name[locale]} + {props.incomingCharacter?.name[locale]} +