Skip to content

Commit 2a3f2fe

Browse files
authored
Protect: fix home page stat card spacing (#40623)
1 parent 4fa70a3 commit 2a3f2fe

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

projects/plugins/protect/src/js/routes/home/home-admin-section-hero.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ const HomeAdminSectionHero: React.FC = () => {
4343
</Button>
4444
</>
4545
</AdminSectionHero.Main>
46-
<AdminSectionHero.Aside>{ <HomeStatCards /> }</AdminSectionHero.Aside>
46+
<AdminSectionHero.Aside>
47+
<HomeStatCards />
48+
</AdminSectionHero.Aside>
4749
</AdminSectionHero>
4850
);
4951
};

projects/plugins/protect/src/js/routes/home/styles.module.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616
.stat-cards-wrapper {
1717
display: flex;
1818
justify-content: flex-start;
19-
20-
> *:not( last-child ) {
21-
margin-right: calc( var( --spacing-base ) * 3 ); // 24px
22-
}
19+
gap: calc( var( --spacing-base ) * 3 ); // 24px
2320

2421
.disabled {
2522
opacity: 0.5;

0 commit comments

Comments
 (0)