From dfc7ce2634b28125d829a902d50d61c86f4600f0 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Thu, 8 Jun 2023 03:55:34 -0500 Subject: [PATCH] link --- src/App.module.scss | 13 ++++++++++-- src/App.tsx | 47 +++++++++++++++++++++++++++++++----------- src/panes/HomePane.tsx | 16 +++++++++++++- 3 files changed, 61 insertions(+), 15 deletions(-) diff --git a/src/App.module.scss b/src/App.module.scss index c678a43..9df3058 100644 --- a/src/App.module.scss +++ b/src/App.module.scss @@ -9,14 +9,23 @@ main.main { justify-content: space-evenly; list-style-type: none; + + li { + flex-basis: 0; + flex-grow: 1; + } } .link { - flex-grow: 1; display: inline-block; + width: 100%; + text-align: center; padding: 12px; + border-top: 4px solid transparent; + user-select: none; } .link-active { - background-color: skyblue; + border-top-color: #09c; + background-color: lightskyblue; } diff --git a/src/App.tsx b/src/App.tsx index 8628c3d..38bd979 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -18,14 +18,16 @@ function Layout() { return (