From 9082c57791557dcd604c9910c8aa84fcd8358eae Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Thu, 6 Jun 2024 16:19:13 +0800 Subject: [PATCH] =?UTF-8?q?Fix(shortcode):=20=E4=BF=AE=E5=A4=8D=20shortcod?= =?UTF-8?q?e=20=E5=8D=95=E4=B8=AA=20repo=20=E6=97=B6=E6=9C=AA=E5=B1=85?= =?UTF-8?q?=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/component-projects/repo-card.scss | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/assets/css/component-projects/repo-card.scss b/assets/css/component-projects/repo-card.scss index 40895fc..6d1e8d3 100644 --- a/assets/css/component-projects/repo-card.scss +++ b/assets/css/component-projects/repo-card.scss @@ -24,6 +24,12 @@ flex-wrap: wrap; gap: 1rem; margin: 0.5rem; + + &.single { + .gh-repo-card:only-child { + margin: auto; + } + } } .gh-repo-card { @@ -37,10 +43,6 @@ border-style: solid; border-width: var(--bw-gh-repo-card); - &.single:only-child { - margin: auto; - } - svg { display: inline-block; overflow: visible !important;