From 5e5f9feec96bbb03f9b42035792f75f200edff88 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 25 Nov 2014 23:04:00 +0100 Subject: [PATCH] Added missing mobile optimization for edit history --- com.woltlab.wcf/templates/editHistory.tpl | 2 +- wcfsetup/install/files/style/layout.less | 17 -------------- wcfsetup/install/files/style/message.less | 27 +++++++++++++++++++++++ 3 files changed, 28 insertions(+), 18 deletions(-) diff --git a/com.woltlab.wcf/templates/editHistory.tpl b/com.woltlab.wcf/templates/editHistory.tpl index 157b7b9c25..e9afdccbd7 100644 --- a/com.woltlab.wcf/templates/editHistory.tpl +++ b/com.woltlab.wcf/templates/editHistory.tpl @@ -64,7 +64,7 @@ {/if}
-
+
{assign var='versionCount' value=$objects|count}

{lang}wcf.edit.versions{/lang} {#$versionCount+1}

diff --git a/wcfsetup/install/files/style/layout.less b/wcfsetup/install/files/style/layout.less index 36199119a9..2e09feea9e 100644 --- a/wcfsetup/install/files/style/layout.less +++ b/wcfsetup/install/files/style/layout.less @@ -2296,23 +2296,6 @@ ul.inlineDataList { } } -.editHistoryDiff { - > .sideBySide:first-child { - margin-bottom: @wcfGapLarge; - text-align: center; - } - - .sideBySide { - > div:first-child { - padding-right: @wcfGapMedium; - } - - > div:last-child { - padding-left: @wcfGapMedium; - } - } -} - /* ad locations */ .wcfAdLocationHeaderContent, .wcfAdLocationFooterContent, diff --git a/wcfsetup/install/files/style/message.less b/wcfsetup/install/files/style/message.less index 603ce711be..1235da93c6 100644 --- a/wcfsetup/install/files/style/message.less +++ b/wcfsetup/install/files/style/message.less @@ -1079,3 +1079,30 @@ li:nth-child(2n+1) .message { } } } + +/* edit history */ +.editHistoryDiff { + > .sideBySide:first-child { + margin-bottom: @wcfGapLarge; + text-align: center; + } + + .sideBySide { + > div:first-child { + padding-right: @wcfGapMedium; + } + + > div:last-child { + padding-left: @wcfGapMedium; + } + } +} + +@media only screen and (max-width: 800px) { + .editHistoryVersionList { + .columnUser, + .columnEditReason { + display: none; + } + } +} \ No newline at end of file -- 2.20.1