From f2710860c3058f8f792b3a106cb37573bc4f0389 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+studip@gmail.com>
Date: Thu, 22 Aug 2024 06:39:43 +0000
Subject: [PATCH] fix display of overlong names on studygroup participants
 list, fixes #4489

Closes #4489

Merge request studip/studip!3282
---
 .../assets/stylesheets/scss/studygroup.scss   | 27 +++++++++++--------
 1 file changed, 16 insertions(+), 11 deletions(-)

diff --git a/resources/assets/stylesheets/scss/studygroup.scss b/resources/assets/stylesheets/scss/studygroup.scss
index 7bdefb4d00c..8eb0c4ce81b 100644
--- a/resources/assets/stylesheets/scss/studygroup.scss
+++ b/resources/assets/stylesheets/scss/studygroup.scss
@@ -1,20 +1,25 @@
+#course-studygroup-members {
+    #content h3:first-of-type {
+        margin-top: 0;
+    }
+}
+
 ul.studygroup-gallery {
+    display: flex;
+    flex-direction: row;
+    flex-wrap: wrap;
+    gap: 10px;
     list-style: none;
-    padding-left: 15px;
+    padding-left: 0;
     li {
         box-sizing: border-box;
-        vertical-align: top;
+        display: inline-blocK;
+        flex: 0 0 120px;
+        min-height: 150px;
+        overflow: hidden;
         text-align: center;
-        margin: 5px;
+        vertical-align: top;
         width: 120px;
-        height: 150px;
-        max-height: 150px;
-        overflow: hidden;
-        display: inline-blocK;
-        section {
-            margin: 0 auto;
-
-        }
     }
 }
 
-- 
GitLab