Lift limit on maximum number of special trophies
authorMarcel Werk <burntime@woltlab.com>
Sat, 6 Jun 2020 11:13:53 +0000 (13:13 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sat, 6 Jun 2020 11:13:53 +0000 (13:13 +0200)
Closes #3256

com.woltlab.wcf/userGroupOption.xml
wcfsetup/install/files/style/ui/trophy.scss

index d99d4f700e4d3f733665e5341ae5e5e14136c63b..9fd4679bf1ecf7aef2cdb489f4b91b870b1d8e72 100644 (file)
@@ -798,10 +798,9 @@ png</defaultvalue>
                        <option name="user.profile.trophy.maxUserSpecialTrophies">
                                <categoryname>user.profile.trophy</categoryname>
                                <optiontype>integer</optiontype>
-                               <defaultvalue>3</defaultvalue>
+                               <defaultvalue>5</defaultvalue>
                                <options>module_trophy</options>
                                <minvalue>0</minvalue>
-                               <maxvalue>5</maxvalue>
                                <usersonly>1</usersonly>
                        </option>
                        <!-- /user.profile -->
index 0335c27cc6d352659447dc21c397d69bea890cdc..342daf6dce0fadfa0de616ef4ee687d8770c9b96 100644 (file)
        }
 }
 
+/* trophies in message sidebar */
 .specialTrophyContainer {
        margin-top: 10px;
        
        > ul {
                display: flex;
                justify-content: center;
+               flex-wrap: wrap;
+               margin-bottom: -5px;
+               margin-right: -5px;
                
-               > li:not(:last-child) {
+               > li {
+                       margin-bottom: 5px;
                        margin-right: 5px;
                }
        }
        }
 }
 
+/* trophies in user profile header */
 .specialTrophyUserContainer > ul {
+       align-items: center;
        display: flex;
+       flex-wrap: wrap;
+       margin-right: -5px;
        margin-top: -15px;
-       margin-bottom: 5px;
        
-       > li:not(:last-child) {
+       > li {
+               margin-bottom: 5px;
                margin-right: 5px;
        }
 }