Match 'Bytes' & 'Logs' sections equally

This commit is contained in:
2024-11-28 15:58:29 -06:00
parent 602a9a4267
commit 87ffbda6a7
2 changed files with 15 additions and 8 deletions

View File

@@ -18,24 +18,28 @@ export default function Bytes({ className }: BytesProps) {
className className
)} )}
> >
<p className="text-xs font-medium mx-2.5">Bytes</p> <p className="text-xs font-medium px-2.5 border-b border-zinc-700 pb-1 text-zinc-300">
<p className="text-xs mx-3 pt-0.5 text-zinc-400"> Bytes
</p>
<p className="text-xs mx-4 pt-1.5 pb-1.5 text-zinc-400">
You can change the offset of the bytes modified in this menu if it You can change the offset of the bytes modified in this menu if it
doesn't work initially. doesn't work initially.
</p> </p>
<div <div
className={cn( className={cn(
"pt-2 grid grid-cols-16 font-mono mx-5 gap-1 text-center text-xs h-full overflow-y-scroll", "pt-2 grid grid-cols-16 font-mono pr-2 mx-2.5 gap-1 text-center text-xs h-full overflow-y-scroll",
className className
)} )}
> >
{bytes.map((byte, index) => ( {bytes.map((byte, index) => (
<div <div
key={index} key={index}
className={cn("hover:bg-black/45", { className={cn(
"text-zinc-500": "hover:bg-black/45 select-none",
Math.random() < 0.9 || index < 50 || index > 16 * 10, Math.random() < 0.9 || index < 50 || index > 16 * 10
})} ? "text-zinc-500"
: "cursor-pointer"
)}
> >
{byte} {byte}
</div> </div>

View File

@@ -26,7 +26,10 @@ export default function Logs() {
return ( return (
<div className="bg-black/40 py-2.5 rounded"> <div className="bg-black/40 py-2.5 rounded">
<p className="text-xs font-medium mx-2.5">Logs</p> <p className="text-xs font-medium px-2.5 border-b border-zinc-700 pb-1 text-zinc-300">
Logs
</p>
<div className="flex flex-col space-y-1 mt-1 text-zinc-400"> <div className="flex flex-col space-y-1 mt-1 text-zinc-400">
{data.map((log) => { {data.map((log) => {
return ( return (