1
0
Эх сурвалжийг харах

Update compiled assets, fixes #595

Daniel Supernault 6 жил өмнө
parent
commit
a0b00ce434

BIN
public/js/components.js


BIN
public/mix-manifest.json


+ 1 - 1
resources/assets/js/components.js

@@ -3,7 +3,7 @@ import BootstrapVue from 'bootstrap-vue'
 Vue.use(BootstrapVue);
 Vue.use(BootstrapVue);
 
 
 pixelfed.readmore = () => {
 pixelfed.readmore = () => {
-  $(document).find('.read-more').each(function(k,v) {
+  $('.read-more').each(function(k,v) {
       let el = $(this);
       let el = $(this);
       let attr = el.attr('data-readmore');
       let attr = el.attr('data-readmore');
       if(typeof attr !== typeof undefined && attr !== false) {
       if(typeof attr !== typeof undefined && attr !== false) {

+ 2 - 2
resources/assets/js/components/PostComments.vue

@@ -23,7 +23,7 @@
           <span class="pr-3" style="overflow: hidden;">
           <span class="pr-3" style="overflow: hidden;">
             <div class="font-weight-bold pr-1"><bdi><a class="text-dark" :href="comment.account.url" :title="comment.account.username">{{l(comment.account.username)}}</a></bdi>
             <div class="font-weight-bold pr-1"><bdi><a class="text-dark" :href="comment.account.url" :title="comment.account.username">{{l(comment.account.username)}}</a></bdi>
             </div>
             </div>
-            <div class="read-more" style="overflow: hidden;">
+            <div class="read-more" style="overflow: hidden;" :id="comment.id + '-reply-readmore'">
               <span class="comment-text" v-html="comment.content" style="overflow: hidden;"></span>
               <span class="comment-text" v-html="comment.content" style="overflow: hidden;"></span>
             </div>
             </div>
           </span>
           </span>
@@ -51,7 +51,7 @@ export default {
     props: ['post-id', 'post-username', 'user'],
     props: ['post-id', 'post-username', 'user'],
     data() {
     data() {
         return {
         return {
-            results: {},
+            results: null,
             pagination: {},
             pagination: {},
             min_id: 0,
             min_id: 0,
             max_id: 0,
             max_id: 0,

+ 1 - 1
resources/assets/js/components/PostComponent.vue

@@ -91,7 +91,7 @@
               <div class="status-comment">
               <div class="status-comment">
                 <p class="mb-1 read-more" style="overflow: hidden;">
                 <p class="mb-1 read-more" style="overflow: hidden;">
                   <span class="font-weight-bold pr-1">{{statusUsername}}</span>
                   <span class="font-weight-bold pr-1">{{statusUsername}}</span>
-                  <span class="comment-text"></span>
+                  <span class="comment-text" :id="status.id + '-status-readmore'"></span>
                 </p>
                 </p>
                 <post-comments :user="this.user" :post-id="statusId" :post-username="statusUsername"></post-comments>
                 <post-comments :user="this.user" :post-id="statusId" :post-username="statusUsername"></post-comments>
               </div>
               </div>