68
68
69
69
<div class =" profile-user-stats" >
70
70
<div class =" stats" >
71
+ <span class =" label" >Posts </span >
71
72
<span class =" stat-text" >{{ user.post_count || 0 }}</span >
72
- <span class =" label" >Posts</span >
73
73
</div >
74
- <div class =" stats" >
75
- <span class =" label" >Last Seen </span >
76
- <span class =" stat-text-sm " >{{ humanDate(user.last_active, true) }}</span >
74
+ <div v-if = " user.last_active " class =" stats" >
75
+ <span class =" label" >Last Active </span >
76
+ <span class =" stat-text" >{{ humanDate(user.last_active, true) }}</span >
77
77
</div >
78
78
<div class =" stats" >
79
79
<span class =" label" >Created </span >
80
- <span class =" stat-text-sm " >{{ humanDate(user.created_at, true) }}</span >
80
+ <span class =" stat-text" >{{ humanDate(user.created_at, true) }}</span >
81
81
</div >
82
82
</div >
83
83
</div >
@@ -492,7 +492,7 @@ export default {
492
492
a { color: $text- gray- med; text- decoration: underline; }
493
493
}
494
494
}
495
- .signature - block { display: flex ; margin- bottom: 1rem ; }
495
+ .signature - block { display: grid ; margin- bottom: 1rem ; }
496
496
.signature {
497
497
@include truncate- ellipsis;
498
498
font- size: $font- size- xs;
@@ -507,7 +507,11 @@ export default {
507
507
}
508
508
.profile - user- stats {
509
509
display: flex;
510
- margin- bottom: 2rem ;
510
+ margin- bottom: 1rem ;
511
+ column- gap: 0 .5rem ;
512
+ @include break - mobile- med {
513
+ justify- content: center;
514
+ }
511
515
.stats {
512
516
border: $border;
513
517
border- radius: 6px ;
@@ -516,31 +520,36 @@ export default {
516
520
flex- direction: column;
517
521
align- items: center;
518
522
justify- content: center;
519
- margin- right: 1rem ;
520
523
padding: 0 .5rem ;
521
524
text- align: center;
522
- width: 100px ;
523
- max- width: 120px ;
524
- .label { font- size: $font- size- xs; }
525
+ width: auto;
526
+ white- space: nowrap;
527
+ @include break - mobile- med {
528
+ width: 100px ;
529
+ max- width: 120px ;
530
+ white- space: normal;
531
+ }
532
+ .label {
533
+ margin- bottom: 0 .25rem ;
534
+ font- size: $font- size- xs;
535
+ }
525
536
.stat - text {
526
- font- size: 2rem ;
537
+ font- size: $font - size - lg ;
527
538
font- weight: 600 ;
528
539
margin- bottom: 0 .25rem ;
529
- & - sm { font- size: 21px ; font- weight: 600 ; }
530
540
}
531
541
}
532
542
}
533
543
@include break - mobile- med {
534
544
align- items: center;
535
545
flex- direction: column;
536
546
.profile - avatar {
537
- margin- bottom: 3rem ;
538
547
margin- right: 0 ;
539
548
}
540
549
.profile - user- details {
541
550
.profile - user- name- role {
542
551
flex- direction: column;
543
- margin- bottom: 1 . 5rem ;
552
+ margin- bottom: 1rem ;
544
553
h1, .username - screen , .user - role {
545
554
margin- bottom: 0 .25rem ;
546
555
}
@@ -550,12 +559,16 @@ export default {
550
559
.trust - profile { .trust - link { white- space: nowrap; } }
551
560
}
552
561
}
553
- .profile - threads- posts { grid- area: main; }
562
+ .profile - threads- posts {
563
+ grid- area: main;
564
+ @include break - mobile- med {
565
+ border- top: $border;
566
+ }
567
+ }
554
568
.profile - sidebar {
555
569
color: $text- gray- dark;
556
570
grid- area: sidebar;
557
571
.actions - panel {
558
- border- bottom: $border;
559
572
line- height: 1.5 ;
560
573
margin- bottom: 1rem ;
561
574
padding- bottom: 1rem ;
0 commit comments