fix line wrap and timestamp font
This commit is contained in:
@@ -172,7 +172,8 @@ export const Log: FC<ILog> = ({
|
|||||||
},
|
},
|
||||||
[accounts]
|
[accounts]
|
||||||
);
|
);
|
||||||
const message = enrichAccounts(_message.trim());
|
_message = _message.trim().replace(/\n /gi, "\n");
|
||||||
|
const message = enrichAccounts(_message);
|
||||||
const jsonData = enrichAccounts(_jsonData);
|
const jsonData = enrichAccounts(_jsonData);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -182,8 +183,8 @@ export const Log: FC<ILog> = ({
|
|||||||
activeAccountAddress={dialogAccount}
|
activeAccountAddress={dialogAccount}
|
||||||
/>
|
/>
|
||||||
<LogText variant={type}>
|
<LogText variant={type}>
|
||||||
{timestamp && <Text muted>{timestamp} </Text>}
|
{timestamp && <Text muted monospace>{timestamp} </Text>}
|
||||||
<Pre line>{message} </Pre>
|
<Pre>{message} </Pre>
|
||||||
{link && (
|
{link && (
|
||||||
<NextLink href={link} shallow passHref>
|
<NextLink href={link} shallow passHref>
|
||||||
<Link as="a">{linkText}</Link>
|
<Link as="a">{linkText}</Link>
|
||||||
|
|||||||
@@ -14,6 +14,11 @@ const Text = styled("span", {
|
|||||||
true: {
|
true: {
|
||||||
color: '$mauve9'
|
color: '$mauve9'
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
monospace: {
|
||||||
|
true: {
|
||||||
|
fontFamily: '$monospace'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user