fix: move the view all button in badges box to the bottom left

This commit is contained in:
Moyasee
2025-12-23 16:52:04 +02:00
parent 3c296fe721
commit 45eaef23a9
2 changed files with 19 additions and 9 deletions

View File

@@ -75,6 +75,14 @@
margin: 0; margin: 0;
} }
&__view-all-container {
background-color: globals.$background-color;
padding-top: calc(globals.$spacing-unit * 2);
margin-top: calc(globals.$spacing-unit * 2);
display: flex;
justify-content: flex-start;
}
&__view-all { &__view-all {
background: none; background: none;
border: none; border: none;

View File

@@ -28,15 +28,6 @@ export function BadgesBox() {
{numberFormatter.format(userProfile.badges.length)} {numberFormatter.format(userProfile.badges.length)}
</span> </span>
</div> </div>
{hasMoreBadges && (
<button
type="button"
className="badges-box__view-all"
onClick={() => setShowAllBadgesModal(true)}
>
{t("view_all")}
</button>
)}
</div> </div>
<div className="badges-box__box"> <div className="badges-box__box">
@@ -66,6 +57,17 @@ export function BadgesBox() {
); );
})} })}
</div> </div>
{hasMoreBadges && (
<div className="badges-box__view-all-container">
<button
type="button"
className="badges-box__view-all"
onClick={() => setShowAllBadgesModal(true)}
>
{t("view_all")}
</button>
</div>
)}
</div> </div>
</div> </div>