Optimized message list / message group list for medium screens
authorMarcel Werk <burntime@woltlab.com>
Thu, 9 Jun 2022 16:39:09 +0000 (18:39 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 9 Jun 2022 16:39:09 +0000 (18:39 +0200)
wcfsetup/install/files/style/ui/message.scss
wcfsetup/install/files/style/ui/messageGroup.scss

index 9563396592f8cc5a796a08639cc8cfcbe7980952..601a51267cb774f25cd39dd7876384145815f04c 100644 (file)
        @include screen-md-up {
                align-self: flex-start;
                border-radius: 3px;
-               flex: 0 0 240px;
-               padding: 20px;
                text-align: center;
 
-               & + .messageContent {
-                       flex-basis: calc(100% - 270px);
-                       margin-left: 30px;
-                       max-width: calc(100% - 270px);
-               }
-
                .username {
                        /* required to fix wrapping behavior in combination with
                           `overflow-wrap` / `word-wrap` */
                }
        }
 
+       @include screen-md {
+               flex: 0 0 200px;
+               padding: 15px;
+               
+               & + .messageContent {
+                       flex-basis: calc(100% - 220px);
+                       margin-left: 20px;
+                       max-width: calc(100% - 220px);
+               }
+       }
+
+       @include screen-lg {
+               flex: 0 0 240px;
+               padding: 20px;
+               
+               & + .messageContent {
+                       flex-basis: calc(100% - 270px);
+                       margin-left: 30px;
+                       max-width: calc(100% - 270px);
+               }
+       }
+
        @include screen-sm-down {
                margin: 0 -10px;
                padding: 10px;
index b6c06d504a8818a51e7118137ac2ff5b6770ce98..4abb719c7df9335c642d1e0b78a4b1db527042d5 100644 (file)
@@ -5,8 +5,15 @@
                }
 
                .columnStats {
-                       flex: 0 0 150px;
                        text-align: center;
+                       
+                       @include screen-lg {
+                               flex: 0 0 150px;
+                       }
+
+                       @include screen-md-down {
+                               flex: 0 0 100px;
+                       }
                }
 
                .columnLastPost {
                }
        }
 
-       @include screen-sm-down {
+       @include screen-md-down {
                .tabularListColumns > .columnMark {
                        display: none;
                }
 
                .tabularListRowHead {
-                       .columnMark,
+                       .columnMark {
+                               display: none;
+                       }
+
+                       .columnSubject {
+                               padding: 0;
+                       }
+
+                       .columnLastPost {
+                               flex-basis: auto;
+                               padding: 0;
+                       }
+               }
+       }
+
+       @include screen-sm-down {
+               .tabularListRowHead {
                        .columnStats {
                                display: none;
                        }