diff --git a/src/components/BoxTable.tsx b/src/components/BoxTable.tsx index e27c3d5..7f9163c 100644 --- a/src/components/BoxTable.tsx +++ b/src/components/BoxTable.tsx @@ -98,18 +98,20 @@ const BoxTable = () => { const columns = Math.ceil(Math.sqrt(boxes.length)); return ( - <> -
+
{boxes.map(([source, destination]) =>
toggleLines(source)} onMouseEnter={() => showLine(source)} onMouseLeave={() => hideLine(source)}>
-
{destination}
- +
{destination}
+ {source} {enabledLines[source] ? @@ -120,7 +122,7 @@ const BoxTable = () => {
)}
- +
); } diff --git a/src/styles/globals.scss b/src/styles/globals.scss index b702005..1706d7c 100644 --- a/src/styles/globals.scss +++ b/src/styles/globals.scss @@ -11,13 +11,13 @@ body { } .box { - @apply transition-all; + @apply transition-all max-h-[6rem]; .arrow { @apply drop-shadow-lg; } > .text { @apply transition-opacity opacity-30; } &:hover { > .text { @apply opacity-100; } > svg { - @apply max-w-full max-h-full -translate-y-7; + @apply max-w-full max-h-full -translate-y-[40%]; } } } \ No newline at end of file