From b844e0c0baf34dd19925af57870c657126064706 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 9 Jun 2022 18:39:09 +0200 Subject: [PATCH] Optimized message list / message group list for medium screens --- wcfsetup/install/files/style/ui/message.scss | 30 ++++++++++++++----- .../install/files/style/ui/messageGroup.scss | 29 ++++++++++++++++-- 2 files changed, 48 insertions(+), 11 deletions(-) diff --git a/wcfsetup/install/files/style/ui/message.scss b/wcfsetup/install/files/style/ui/message.scss index 9563396592..601a51267c 100644 --- a/wcfsetup/install/files/style/ui/message.scss +++ b/wcfsetup/install/files/style/ui/message.scss @@ -123,16 +123,8 @@ @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` */ @@ -140,6 +132,28 @@ } } + @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; diff --git a/wcfsetup/install/files/style/ui/messageGroup.scss b/wcfsetup/install/files/style/ui/messageGroup.scss index b6c06d504a..4abb719c7d 100644 --- a/wcfsetup/install/files/style/ui/messageGroup.scss +++ b/wcfsetup/install/files/style/ui/messageGroup.scss @@ -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 { @@ -242,13 +249,29 @@ } } - @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; } -- 2.20.1