Fix shrinking of content navigation buttons in desktop version
authorMarcel Werk <burntime@woltlab.com>
Sun, 3 Jul 2022 13:26:28 +0000 (15:26 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 3 Jul 2022 13:26:28 +0000 (15:26 +0200)
https://github.com/WoltLab/WCF/commit/a3e4ab16d9a566149de88e2d4b649accc768f012 caused the text on the buttons to be severely shortened when the content title became too long.

wcfsetup/install/files/style/layout/content.scss

index 16790c1a9e7ced99e2422e50ac9e66b95a179a5e..cc7de31aa076ff25d87d8d9faf472ffd5900b64e 100644 (file)
@@ -44,7 +44,7 @@
        }
 
        .contentHeaderNavigation {
-               flex: 0 1 auto;
+               flex: 0 0 auto;
                margin-left: 15px;
                margin-top: 10px;
        }
        @include screen-sm-down {
                flex-wrap: wrap;
 
+               .contentHeaderNavigation {
+                       flex-shrink: 1;
+               }
+
                .contentHeaderIcon {
                        display: none;
                }
 
        @include screen-md-up {
                .contentHeaderNavigation {
-                       max-width: 50%;
+                       max-width: 40%;
                }
        }
 }