Fix SF levels and tweak spacing

This commit is contained in:
nickofolas
2022-04-07 20:44:29 -05:00
parent 960dc354c1
commit 9dea381536
4 changed files with 7 additions and 5 deletions

View File

@ -133,7 +133,7 @@ export function AugmentationsRoot(props: IProps): React.ReactElement {
</>
}
>
<Info sx={{ ml: 1, mb: 1 }} color="info" />
<Info sx={{ ml: 1, mb: 0.5 }} color="info" />
</Tooltip>
</Typography>
<ConfirmationModal

View File

@ -67,7 +67,7 @@ function MultiplierList({ rows, color, noMargin = false }: MultListProps): React
secondary={
<span style={{ display: "flex", alignItems: "center", flexWrap: "wrap" }}>
<BitNodeModifiedStats base={value} mult={bnMult} color={color} />
<DoubleArrow fontSize="small" color="success" sx={{ mb: 1, mx: 1 }} />
<DoubleArrow fontSize="small" color="success" sx={{ mb: 0.5, mx: 1 }} />
<BitNodeModifiedStats base={improved} mult={bnMult} color={Settings.theme.success} />
</span>
}

View File

@ -98,6 +98,7 @@ export function SourceFilesElement(): React.ReactElement {
{sourceSfs.map((e, i) => {
const sfObj = safeGetSf(e.n);
if (!sfObj) return;
const maxLevel = sfObj?.n === 12 ? "∞" : "3";
return (
@ -109,10 +110,10 @@ export function SourceFilesElement(): React.ReactElement {
>
<ListItemText
disableTypography
primary={<Typography>{sfObj?.name}</Typography>}
primary={<Typography>{sfObj.name}</Typography>}
secondary={
<Typography>
Level {selectedSf.lvl} / {maxLevel}
Level {e.lvl} / {maxLevel}
</Typography>
}
/>
@ -128,6 +129,7 @@ export function SourceFilesElement(): React.ReactElement {
<Typography sx={{ maxHeight: 305, overflowY: "scroll" }}>
{(() => {
const sfObj = safeGetSf(selectedSf.n);
if (!sfObj) return;
let maxLevel;
switch (sfObj?.n) {

View File

@ -363,7 +363,7 @@ export function CharacterStats(): React.ReactElement {
</Typography>
}
>
<Info sx={{ ml: 1, mb: 1 }} color="info" />
<Info sx={{ ml: 1, mb: 0.5 }} color="info" />
</Tooltip>
</Typography>
<Box sx={{ display: "grid", gridTemplateColumns: "1fr 1fr", gap: 1 }}>