mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 05:46:17 +00:00
fix: move the view all button in badges box to the bottom left
This commit is contained in:
@@ -75,6 +75,14 @@
|
||||
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 {
|
||||
background: none;
|
||||
border: none;
|
||||
|
||||
@@ -28,15 +28,6 @@ export function BadgesBox() {
|
||||
{numberFormatter.format(userProfile.badges.length)}
|
||||
</span>
|
||||
</div>
|
||||
{hasMoreBadges && (
|
||||
<button
|
||||
type="button"
|
||||
className="badges-box__view-all"
|
||||
onClick={() => setShowAllBadgesModal(true)}
|
||||
>
|
||||
{t("view_all")}
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="badges-box__box">
|
||||
@@ -66,6 +57,17 @@ export function BadgesBox() {
|
||||
);
|
||||
})}
|
||||
</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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user