Fix the visuals of the style list
authorAlexander Ebert <ebert@woltlab.com>
Sat, 16 Sep 2023 10:15:32 +0000 (12:15 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 16 Sep 2023 10:15:32 +0000 (12:15 +0200)
See https://www.woltlab.com/community/thread/301624-stil-liste-im-acp-layoutfehler-rc1/

com.woltlab.wcf/templates/styleChooser.tpl
wcfsetup/install/files/acp/templates/styleList.tpl
wcfsetup/install/files/style/layout/containerList.scss

index 99ec4aecb4238643c5cd0b8da473dccf40cd5ea7..112a7c945edbd95da36eb4a75a37127586780711 100644 (file)
@@ -1,8 +1,8 @@
 <ol class="containerList styleList{if $styleList|count > 4} doubleColumned{/if}">
        {foreach from=$styleList item=style}
                <li data-style-id="{@$style->styleID}">
-                       <div class="box64">
-                               <span>
+                       <div class="box128">
+                               <span class="styleListPreviewImage">
                                        <img src="{@$style->getPreviewImage()}" srcset="{@$style->getPreviewImage2x()} 2x" height="64" alt="">
                                </span>
                                <div class="details">
index 132d75fca928c54f45120bbfcca64c90655150e2..cee894d97df268ad8a28205d500576b025178611 100644 (file)
@@ -42,8 +42,8 @@
        <ol class="containerList styleList jsObjectActionContainer" data-object-action-class-name="wcf\data\style\StyleAction">
                {foreach from=$objects item=style}
                        <li class="jsObjectActionObject" data-object-id="{@$style->getObjectID()}">
-                               <div class="box64">
-                                       <span>
+                               <div class="box128">
+                                       <span class="styleListPreviewImage">
                                                <img src="{@$style->getPreviewImage()}" srcset="{@$style->getPreviewImage2x()} 2x" height="64" alt="">
                                        </span>
                                        <div class="details">
index c7b5dff480870776f4239dab18f5bf335f0009f8..a2de5f116df63f09e99d1e04aeec0a3941ab1022 100644 (file)
        }
 }
 
+.styleListPreviewImage {
+       text-align: center;
+}
+
 @include screen-md-down {
        .styleList > li {
                padding: 10px;