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 {
|
h3 {
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: $font-regular;
|
font-size: $font-regular;
|
||||||
font-weight: 500;
|
font-weight: $normal;
|
||||||
|
line-height: 1.1;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
max-width: 131px;
|
max-width: 131px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,6 @@ const CharacterUnit = (props: Props) => {
|
||||||
)
|
)
|
||||||
|
|
||||||
const unitContent = (
|
const unitContent = (
|
||||||
<div>
|
|
||||||
<div className={classes}>
|
<div className={classes}>
|
||||||
{ (props.editable) ? editableImage : image }
|
{ (props.editable) ? editableImage : image }
|
||||||
{ (gridCharacter && character) ?
|
{ (gridCharacter && character) ?
|
||||||
|
|
@ -91,7 +90,6 @@ const CharacterUnit = (props: Props) => {
|
||||||
/> : '' }
|
/> : '' }
|
||||||
<h3 className="CharacterName">{character?.name.en}</h3>
|
<h3 className="CharacterName">{character?.name.en}</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const withHovercard = (
|
const withHovercard = (
|
||||||
|
|
@ -101,9 +99,7 @@ const CharacterUnit = (props: Props) => {
|
||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classes}>
|
(gridCharacter) ? withHovercard : unitContent
|
||||||
{ (gridCharacter) ? withHovercard : unitContent }
|
|
||||||
</div>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,8 @@
|
||||||
h3 {
|
h3 {
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: $font-regular;
|
font-size: $font-regular;
|
||||||
font-weight: 500;
|
font-weight: $normal;
|
||||||
|
line-height: 1.1;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ const SummonUnit = (props: Props) => {
|
||||||
)
|
)
|
||||||
|
|
||||||
const unitContent = (
|
const unitContent = (
|
||||||
<div>
|
<div className={classes}>
|
||||||
{ (props.editable) ? editableImage : image }
|
{ (props.editable) ? editableImage : image }
|
||||||
{ (gridSummon) ?
|
{ (gridSummon) ?
|
||||||
<UncapIndicator
|
<UncapIndicator
|
||||||
|
|
@ -105,11 +105,7 @@ const SummonUnit = (props: Props) => {
|
||||||
</SummonHovercard>
|
</SummonHovercard>
|
||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (gridSummon) ? withHovercard : unitContent
|
||||||
<div className={classes}>
|
|
||||||
{ (gridSummon) ? withHovercard : unitContent }
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default SummonUnit
|
export default SummonUnit
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@
|
||||||
color: $grey-00;
|
color: $grey-00;
|
||||||
font-size: $font-button;
|
font-size: $font-button;
|
||||||
font-weight: $normal;
|
font-weight: $normal;
|
||||||
|
line-height: 1.1;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ const WeaponUnit = (props: Props) => {
|
||||||
)
|
)
|
||||||
|
|
||||||
const unitContent = (
|
const unitContent = (
|
||||||
<div>
|
<div className={classes}>
|
||||||
{ (props.editable && gridWeapon && canBeModified(gridWeapon)) ?
|
{ (props.editable && gridWeapon && canBeModified(gridWeapon)) ?
|
||||||
<WeaponModal gridWeapon={gridWeapon}>
|
<WeaponModal gridWeapon={gridWeapon}>
|
||||||
<div>
|
<div>
|
||||||
|
|
@ -118,11 +118,7 @@ const WeaponUnit = (props: Props) => {
|
||||||
</WeaponHovercard>
|
</WeaponHovercard>
|
||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (gridWeapon) ? withHovercard : unitContent
|
||||||
<div className={classes}>
|
|
||||||
{ (gridWeapon) ? withHovercard : unitContent }
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default WeaponUnit
|
export default WeaponUnit
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue