From: Alexander Ebert Date: Sat, 23 Mar 2019 18:14:03 +0000 (+0100) Subject: Generic components for cover photo uploads X-Git-Tag: 5.2.0_Alpha_1~181^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=702589e4f8e7551fc516c274e972682ecf8df443;p=GitHub%2FWoltLab%2FWCF.git Generic components for cover photo uploads --- diff --git a/wcfsetup/install/files/style/ui/contentItem.scss b/wcfsetup/install/files/style/ui/contentItem.scss index ada677ecd7..505398fd60 100644 --- a/wcfsetup/install/files/style/ui/contentItem.scss +++ b/wcfsetup/install/files/style/ui/contentItem.scss @@ -176,6 +176,29 @@ } } +.contentItemImagePreview { + border-radius: 3px; + box-shadow: 0 0 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24); + margin-bottom: 10px; + max-width: 100%; +} + +.contentItemImagePreviewButtons { + display: flex; + flex-wrap: wrap; + margin-left: -10px; + + > .button { + flex: 0 auto; + margin-left: 10px; + } + + > .innerError { + flex: 0 0 100%; + margin-left: 10px; + } +} + @include screen-lg { /* There are no sidebars, use a three column layout. */ .content:first-child:last-child { diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 0bb6802a39..4bbc52ec30 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -3869,6 +3869,23 @@ Dateianhänge: {$parentClass} erben.]]> {$segment}{else}(empty){/if} (segment {#$segmentNumber + 1}){/implode}.]]> + + + + + + + + + + + + + + + + Maximale Bildgröße: {$coverPhotoDimensions.max.width}×{$coverPhotoDimensions.max.height} Pixel
Erlaubte Dateiendungen: gif, jpg, jpeg, png
Maximale Dateigröße: {$__wcf->session->getPermission($coverPhotoPermissionMaxSize)|filesize}]]>
+
diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 546b437e1a..83f1170937 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -3815,6 +3815,23 @@ Attachments: {$segment}{else}(empty){/if} (segment {#$segmentNumber + 1}){/implode}.]]> + + + + + + + + + + + + + + + + Maximum Image Size: {$coverPhotoDimensions.max.width}×{$coverPhotoDimensions.max.height} pixels
Allowed File Extensions: gif, jpg, jpeg, png
Maximum Filesize: {$__wcf->session->getPermission($coverPhotoPermissionMaxSize)|filesize}]]>
+