various-js: pass props.size into flexBasis for sigil

Fixes #2817
This commit is contained in:
Liam Fitzgerald 2020-04-29 12:49:14 +10:00
parent 77925a4580
commit e96bd35f81
4 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ export class Sigil extends Component {
return (
<div
className={'dib ' + classes}
style={{ flexBasis: 32, backgroundColor: props.color }}
style={{ flexBasis: props.size, backgroundColor: props.color }}
>
{sigil({
patp: props.ship,

View File

@ -32,7 +32,7 @@ export class Sigil extends Component {
return (
<div
className={'dib ' + classes}
style={{ flexBasis: 32, backgroundColor: props.color }}
style={{ flexBasis: props.size, backgroundColor: props.color }}
>
{sigil({
patp: props.ship,

View File

@ -17,7 +17,7 @@ export class Sigil extends Component {
return (
<div
className={"dib " + classes}
style={{ flexBasis: 16, backgroundColor: props.color }}>
style={{ flexBasis: props.size, backgroundColor: props.color }}>
{sigil({
patp: props.ship,
renderer: reactRenderer,

View File

@ -17,7 +17,7 @@ export class Sigil extends Component {
return (
<div
className={"dib " + classes}
style={{ flexBasis: 32, backgroundColor: props.color }}>
style={{ flexBasis: props.size, backgroundColor: props.color }}>
{sigil({
patp: props.ship,
renderer: reactRenderer,