Skip to content

Commit

Permalink
Fix(shortcode): 修复 shortcode 单个 repo 时未居中
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Jun 6, 2024
1 parent 2991734 commit 9082c57
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions assets/css/component-projects/repo-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
flex-wrap: wrap;
gap: 1rem;
margin: 0.5rem;

&.single {
.gh-repo-card:only-child {
margin: auto;
}
}
}

.gh-repo-card {
Expand All @@ -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;
Expand Down

0 comments on commit 9082c57

Please sign in to comment.