Fix width

This commit is contained in:
Willian Mitsuda 2021-11-08 15:20:13 -03:00
parent 445cd679d8
commit cc652eea5b
2 changed files with 6 additions and 2 deletions

View File

@ -44,7 +44,7 @@ const Trace: React.FC<TraceProps> = ({ txData, resolvedAddresses }) => {
resolvedAddresses={resolvedAddresses}
/>
</div>
<div className="ml-5 space-y-3">
<div className="ml-5 space-y-3 self-stretch">
{traces.map((t, i, a) => (
<TraceItem
key={i}

View File

@ -38,7 +38,11 @@ const TraceInput: React.FC<TraceInputProps> = ({
const [expanded, setExpanded] = useState<boolean>(false);
return (
<div className="ml-5 border hover:border-gray-500 rounded px-1 py-0.5">
<div
className={`ml-5 border hover:border-gray-500 rounded px-1 py-0.5 ${
expanded ? "w-full" : ""
}`}
>
<div className="flex items-baseline">
<span className="text-xs text-gray-400 lowercase">{t.type}</span>
<span>