This commit is contained in:
Willian Mitsuda 2021-11-06 16:14:30 -03:00
parent 42b585bc40
commit f90d9150b8
2 changed files with 7 additions and 3 deletions

View File

@ -37,7 +37,7 @@ const Trace: React.FC<TraceProps> = ({ txData, resolvedAddresses }) => {
return (
<ContentFrame tabs>
<div className="mt-4 mb-5 space-y-3 font-code text-sm flex flex-col items-start overflow-x-auto">
<div className="flex items-baseline border rounded px-1 py-px">
<div className="flex items-baseline border rounded px-1 py-0.5">
<AddressHighlighter address={txData.from}>
<DecoratedAddressLink
address={txData.from}

View File

@ -42,7 +42,7 @@ const TraceInput: React.FC<TraceInputProps> = ({
const [expanded, setExpanded] = useState<boolean>(false);
return (
<div className="ml-5 border rounded px-1 py-px">
<div className="ml-5 border rounded px-1 py-0.5">
<div className="flex items-baseline">
<span className="text-xs text-gray-400 lowercase">{t.type}</span>
<span>
@ -66,7 +66,11 @@ const TraceInput: React.FC<TraceInputProps> = ({
<span className="whitespace-nowrap">
(
{hasParams && (
<Switch checked={expanded} onChange={setExpanded}>
<Switch
className="text-xs"
checked={expanded}
onChange={setExpanded}
>
{expanded ? (
<span className="text-gray-400">[-]</span>
) : (