Browse Source

Ticket #3766 - Market attachments.

AntonLV 4 years ago
parent
commit
e987ec52b1

+ 1 - 1
inc/classes/BxDolStorageQuery.php

@@ -335,7 +335,7 @@ class BxDolStorageQuery extends BxDolDb
 
 
             $sJoin .= ')';
             $sJoin .= ')';
 
 
-            $sOrder = ' ORDER BY `g`.`order` ASC';
+            $sOrder = ' ORDER BY `g`.`order` ASC, `g`.`created` DESC';
         } 
         } 
         else {
         else {
             if (is_array($mixedProfileId) && $mixedProfileId) {
             if (is_array($mixedProfileId) && $mixedProfileId) {

+ 3 - 3
modules/boonex/artificer/data/template/bx_market/attachments.html

@@ -1,10 +1,10 @@
-<div class="bx-base-text-attachments bx-market-attachments">
+<div class="bx-base-text-attachments bx-market-attachments flex flex-wrap">
     <bx_repeat:attachments>
     <bx_repeat:attachments>
         <bx_if:show_separator>
         <bx_if:show_separator>
             <div class="bx-market-attachment-separator bx-base-text-attachment bx-market-attachment w-full pl-2 box-border"><div class="text-xl pt-4"> __type__</div></div>
             <div class="bx-market-attachment-separator bx-base-text-attachment bx-market-attachment w-full pl-2 box-border"><div class="text-xl pt-4"> __type__</div></div>
         </bx_if:show_separator>
         </bx_if:show_separator>
-        <div class="bx-base-text-attachment-wrp inline-block w-1/4 min-w-48">
-            <div class="bx-base-text-attachment bx-market-attachment bx-def-box bx-def-color-bg-box bx-def-round-corners relative m-2 __class__">
+        <div class="bx-base-text-attachment bx-market-attachment __class__ inline-block w-1/4 min-w-48">
+            <div class="bx-base-text-attachment-cnt bx-def-box bx-def-color-bg-box bx-def-round-corners relative m-2">
                 <bx_if:main>
                 <bx_if:main>
                     <div class="bx-market-a-main absolute top-1 right-2 text-2xl">
                     <div class="bx-market-a-main absolute top-1 right-2 text-2xl">
                         <i class="sys-icon check col-green3" title="<bx_text_attribute:_bx_market_txt_most_current_version />"></i>
                         <i class="sys-icon check col-green3" title="<bx_text_attribute:_bx_market_txt_most_current_version />"></i>