5151 </div >
5252 </div >
5353
54- <div class =" board-secondary" >
55- <!-- Board Posts and Threads -->
56- <div class =" view-count" >
57- <p class =" view-count-posts" >
58- <span class =" view-count-number" >{{board.total_post_count}}</span >
59- <span class =" label" > posts, </span >
60- </p >
61- <p class =" view-count-threads" >
62- <span class =" view-count-number" >{{board.total_thread_count}}</span >
63- <span class =" label" > threads</span >
64- </p >
65- </div >
54+ <!-- Board Posts and Threads -->
55+ <div class =" view-count" >
56+ <p class =" view-count-posts" >
57+ <span class =" view-count-number" >{{board.total_post_count.toLocaleString()}}</span >
58+ <span class =" label" > Posts </span >
59+ </p >
60+ <p class =" view-count-threads" >
61+ <span class =" view-count-number" >{{board.total_thread_count.toLocaleString()}}</span >
62+ <span class =" label" > Threads</span >
63+ </p >
64+ </div >
6665
67- <!-- Board Last Post By -->
68- <div class =" last-post" >
69- <div v-if =" board.last_post_username" >
70- <span v-if =" board.user_deleted || board.post_deleted" >deleted</span >
71- <img v-if =" !board.user_deleted && !board.post_deleted" class =" avatar-small" :class =" defaultAvatarShape" :src =" board.last_post_avatar || defaultAvatar" @error =" $event.target.src=defaultAvatar" />
72- <router-link v-if =" !board.user_deleted && !board.post_deleted" :to =" { path: '/profile/' + board.last_post_username.toLowerCase(), query: { id: board.last_post_user_id }}" >{{board.last_post_username}}</router-link > posted in
73- <span v-if =" board.last_thread_title" >
74- <router-link :to =" { name: 'Posts', params: { threadSlug: board.last_thread_slug }, query: { start: board.last_post_position} }" >
75- <span v-html =" board.last_thread_title" ></span >
76- </router-link > on
77- </span >
78- <span vi-if =" board.last_post_created_at" >
79- <span >{{humanDate(board.last_post_created_at)}}</span >
80- </span >
81- </div >
66+ <!-- Board Last Post By -->
67+ <div class =" last-post" >
68+ <div v-if =" board.last_post_username" >
69+ <span v-if =" board.user_deleted || board.post_deleted" >deleted</span >
70+ <img v-if =" !board.user_deleted && !board.post_deleted" class =" avatar-small" :class =" defaultAvatarShape" :src =" board.last_post_avatar || defaultAvatar" @error =" $event.target.src=defaultAvatar" />
71+ <router-link v-if =" !board.user_deleted && !board.post_deleted" :to =" { path: '/profile/' + board.last_post_username.toLowerCase(), query: { id: board.last_post_user_id }}" >{{board.last_post_username}}</router-link > posted in
72+ <span v-if =" board.last_thread_title" >
73+ <router-link :to =" { name: 'Posts', params: { threadSlug: board.last_thread_slug }, query: { start: board.last_post_position} }" >
74+ <span v-html =" truncate(decode(board.last_thread_title), 25)" ></span >
75+ </router-link >
76+ </span >
77+ <span vi-if =" board.last_post_created_at" >
78+ <br />on <span >{{humanDate(board.last_post_created_at)}}</span >
79+ </span >
8280 </div >
8381 </div >
8482 </div >
9694import useSWRV from ' swrv'
9795import { mutate } from ' swrv'
9896import humanDate from ' @/composables/filters/humanDate'
97+ import decode from ' @/composables/filters/decode'
98+ import truncate from ' @/composables/filters/truncate'
9999import RecentThreads from ' @/components/threads/RecentThreads.vue'
100100import LoginModal from ' @/components/modals/auth/Login.vue'
101101import RegisterModal from ' @/components/modals/auth/Register.vue'
@@ -160,7 +160,7 @@ export default {
160160 watch (() => v .loggedIn , () => v .boardData .mutate (getBoards)) // Update boards on login
161161 watch (() => v .boardData .error , err => err ? $alertStore .error (err) : null ) // Handle errors
162162
163- return { ... toRefs (v), generateCatId, toggleCategory, humanDate }
163+ return { ... toRefs (v), generateCatId, toggleCategory, humanDate, decode, truncate }
164164 }
165165}
166166 </script >
@@ -236,7 +236,8 @@ img.avatar-small {
236236 .board {
237237 display : flex ;
238238 flex-direction : row ;
239- padding : 0 0 1rem 0 ;
239+ padding : 0.5rem 0 ;
240+ border-bottom : 1px solid rgba (215 , 215 , 215 , 0.35 );
240241 @include break-mobile-sm { flex-direction : column ; }
241242 .info {
242243 flex : 2 0 0 ;
@@ -277,15 +278,11 @@ img.avatar-small {
277278 }
278279 }
279280
280- .board-secondary {
281- display : flex ;
282- flex : 1 ;
283- flex-direction : column ;
284- }
285-
286281 .view-count {
282+ padding-top : 0.5rem ;
283+ flex : 0 1 10% ;
284+ margin-right : 1rem ;
287285 @include info-text ;
288- flex : 0 0 50% ;
289286
290287 & -posts ,
291288 & -threads {
@@ -307,15 +304,16 @@ img.avatar-small {
307304 }
308305
309306 .last-post {
307+ padding-top : 0.5rem ;
310308 @include info-text ;
311- flex : 2 ;
312309 word-break : break-word ;
310+ flex : 0.5 1 120px ;
311+ @include break-min-desktop {
312+ text-align : right ;
313+ }
313314 }
314315
315- @include break-max-desktop {
316- .view-count {
317- flex : 0 0 auto ;
318- }
316+ @include break-mobile-sm {
319317 .view-count-posts ,
320318 .view-count-threads {
321319 display : inline ;
@@ -325,18 +323,6 @@ img.avatar-small {
325323 text-align : left ;
326324 }
327325 }
328-
329- @include break-min-desktop {
330- .info {
331- flex : 2 ;
332- }
333- .board-secondary {
334- flex-direction : row ;
335- .view-count {
336- padding-right : 2rem ;
337- }
338- }
339- }
340326 }
341327
342328 @include break-mobile-sm {
0 commit comments