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