Skip to content

A platform for community discussion. Free, open, simple.

UX: impove badge granted spacing with grid (#24150)

Kris68728806c1ec
diff --git a/app/assets/stylesheets/common/base/user-badges.scss b/app/assets/stylesheets/common/base/user-badges.scss
index 1795adcc37c..22e7de70a59 100644
--- a/app/assets/stylesheets/common/base/user-badges.scss
+++ b/app/assets/stylesheets/common/base/user-badges.scss
@@ -228,11 +228,9 @@
}
.badges-granted {
- display: flex;
- flex-wrap: wrap;
- @media screen and (max-width: $small-width) {
- justify-content: space-between;
- }
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(18em, 1fr));
+ gap: 3em 2em;
}
.container.badges {
diff --git a/app/assets/stylesheets/desktop/components/user-info.scss b/app/assets/stylesheets/desktop/components/user-info.scss
index d135a42763b..054f5816c14 100644
--- a/app/assets/stylesheets/desktop/components/user-info.scss
+++ b/app/assets/stylesheets/desktop/components/user-info.scss
@@ -1,15 +1,6 @@
.user-info {
&.medium {
- flex: 0 0 32%;
- margin: 0 2% 4vh 0;
display: flex;
- &:nth-of-type(3n) {
- margin-right: 0;
- }
- @media screen and (max-width: $small-width) {
- flex: 0 0 48%;
- margin-right: 0;
- }
.user-image {
width: 55px;
margin-right: 0;