From 23e734aa548354bb7ceff5ad8d85de95cd860a55 Mon Sep 17 00:00:00 2001 From: Haishan Date: Mon, 6 Jun 2022 00:27:48 +0800 Subject: [PATCH] Add more space between overview stats cards --- src/components/TrafficNow.module.scss | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/TrafficNow.module.scss b/src/components/TrafficNow.module.scss index 47aee12..b1883d5 100644 --- a/src/components/TrafficNow.module.scss +++ b/src/components/TrafficNow.module.scss @@ -4,10 +4,12 @@ align-items: center; flex-wrap: wrap; + display: grid; + grid-template-columns: repeat(auto-fit, 180px); + grid-gap: 10px; + .sec { padding: 10px; - width: 180px; - margin: 3px; background-color: var(--color-bg-card); border-radius: 10px; box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.1);