Fix styling post-hovercard
This commit is contained in:
parent
e58210a8f1
commit
d89070156d
6 changed files with 22 additions and 31 deletions
|
|
@ -27,7 +27,8 @@
|
|||
h3 {
|
||||
color: #333;
|
||||
font-size: $font-regular;
|
||||
font-weight: 500;
|
||||
font-weight: $normal;
|
||||
line-height: 1.1;
|
||||
margin: 0;
|
||||
max-width: 131px;
|
||||
text-align: center;
|
||||
|
|
|
|||
|
|
@ -77,20 +77,18 @@ const CharacterUnit = (props: Props) => {
|
|||
)
|
||||
|
||||
const unitContent = (
|
||||
<div>
|
||||
<div className={classes}>
|
||||
{ (props.editable) ? editableImage : image }
|
||||
{ (gridCharacter && character) ?
|
||||
<UncapIndicator
|
||||
type="character"
|
||||
flb={character.uncap.flb || false}
|
||||
ulb={character.uncap.ulb || false}
|
||||
uncapLevel={gridCharacter.uncap_level}
|
||||
updateUncap={passUncapData}
|
||||
special={character.special}
|
||||
/> : '' }
|
||||
<h3 className="CharacterName">{character?.name.en}</h3>
|
||||
</div>
|
||||
<div className={classes}>
|
||||
{ (props.editable) ? editableImage : image }
|
||||
{ (gridCharacter && character) ?
|
||||
<UncapIndicator
|
||||
type="character"
|
||||
flb={character.uncap.flb || false}
|
||||
ulb={character.uncap.ulb || false}
|
||||
uncapLevel={gridCharacter.uncap_level}
|
||||
updateUncap={passUncapData}
|
||||
special={character.special}
|
||||
/> : '' }
|
||||
<h3 className="CharacterName">{character?.name.en}</h3>
|
||||
</div>
|
||||
)
|
||||
|
||||
|
|
@ -101,9 +99,7 @@ const CharacterUnit = (props: Props) => {
|
|||
)
|
||||
|
||||
return (
|
||||
<div className={classes}>
|
||||
{ (gridCharacter) ? withHovercard : unitContent }
|
||||
</div>
|
||||
(gridCharacter) ? withHovercard : unitContent
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -92,7 +92,8 @@
|
|||
h3 {
|
||||
color: #333;
|
||||
font-size: $font-regular;
|
||||
font-weight: 500;
|
||||
font-weight: $normal;
|
||||
line-height: 1.1;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ const SummonUnit = (props: Props) => {
|
|||
)
|
||||
|
||||
const unitContent = (
|
||||
<div>
|
||||
<div className={classes}>
|
||||
{ (props.editable) ? editableImage : image }
|
||||
{ (gridSummon) ?
|
||||
<UncapIndicator
|
||||
|
|
@ -105,11 +105,7 @@ const SummonUnit = (props: Props) => {
|
|||
</SummonHovercard>
|
||||
)
|
||||
|
||||
return (
|
||||
<div className={classes}>
|
||||
{ (gridSummon) ? withHovercard : unitContent }
|
||||
</div>
|
||||
)
|
||||
return (gridSummon) ? withHovercard : unitContent
|
||||
}
|
||||
|
||||
export default SummonUnit
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@
|
|||
color: $grey-00;
|
||||
font-size: $font-button;
|
||||
font-weight: $normal;
|
||||
line-height: 1.1;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ const WeaponUnit = (props: Props) => {
|
|||
)
|
||||
|
||||
const unitContent = (
|
||||
<div>
|
||||
<div className={classes}>
|
||||
{ (props.editable && gridWeapon && canBeModified(gridWeapon)) ?
|
||||
<WeaponModal gridWeapon={gridWeapon}>
|
||||
<div>
|
||||
|
|
@ -118,11 +118,7 @@ const WeaponUnit = (props: Props) => {
|
|||
</WeaponHovercard>
|
||||
)
|
||||
|
||||
return (
|
||||
<div className={classes}>
|
||||
{ (gridWeapon) ? withHovercard : unitContent }
|
||||
</div>
|
||||
)
|
||||
return (gridWeapon) ? withHovercard : unitContent
|
||||
}
|
||||
|
||||
export default WeaponUnit
|
||||
|
|
|
|||
Loading…
Reference in a new issue