@@ -277,6 +277,9 @@ export class Author extends CardDef {
277
277
font : var (--boxel-font-sm );
278
278
letter-spacing : var (--boxel-lsp-sm );
279
279
}
280
+ .author-bio-links {
281
+ align-self : end ;
282
+ }
280
283
.author-bio-links > :deep(.embedded-format ) {
281
284
display : flex ;
282
285
flex-wrap : wrap ;
@@ -364,7 +367,6 @@ export class Author extends CardDef {
364
367
height : 100% ;
365
368
min-width : 100px ;
366
369
min-height : 29px ;
367
- display : grid ;
368
370
gap : var (--gap-size );
369
371
overflow : hidden ;
370
372
padding : var (--boxel-sp-xs );
@@ -385,6 +387,7 @@ export class Author extends CardDef {
385
387
}
386
388
.title-group {
387
389
grid-area : header;
390
+ overflow : hidden ;
388
391
}
389
392
.title {
390
393
display : -webkit-box ;
@@ -436,6 +439,7 @@ export class Author extends CardDef {
436
439
437
440
@container fitted-card ((aspect-ratio <= 1.0) and (226px <= height)) {
438
441
.author-fitted {
442
+ display : grid ;
439
443
grid-template :
440
444
' img' max-content
441
445
' header' max-content
@@ -450,43 +454,48 @@ export class Author extends CardDef {
450
454
/* Aspect ratio < 1.0 (Vertical card) */
451
455
@container fitted-card (aspect-ratio <= 1.0) and (224px <= height < 226px) {
452
456
.author-fitted {
457
+ display : grid ;
453
458
grid-template :
454
459
' img' max-content
455
- ' header' 1fr
456
- ' links' max-content / 1fr ;
457
- }
458
- .title ,
459
- .description {
460
- -webkit-line-clamp : 3 ;
460
+ ' header' max-content
461
+ ' links' 1fr / 1fr ;
461
462
}
462
463
.bio {
463
464
display : none ;
464
465
}
466
+ .links {
467
+ align-self : end ;
468
+ }
465
469
}
466
470
467
471
@container fitted-card (aspect-ratio <= 1.0) and (180px <= height < 224px) {
468
472
.author-fitted {
469
473
--thumbnail-size : 40px ;
474
+ display : grid ;
470
475
grid-template :
471
476
' img' max-content
472
- ' header' 1 fr
473
- ' links' max-content / 1fr ;
477
+ ' header' max-content
478
+ ' links' 1 fr / 1fr ;
474
479
}
475
480
.title {
476
481
font-size : var (--boxel-font-size-sm );
477
482
}
478
483
.bio {
479
484
display : none ;
480
485
}
486
+ .links {
487
+ align-self : end ;
488
+ }
481
489
}
482
490
483
491
@container fitted-card (aspect-ratio <= 1.0) and (148px <= height < 180px) {
484
492
.author-fitted {
485
493
--thumbnail-size : 40px ;
494
+ display : grid ;
486
495
grid-template :
487
496
' img' max-content
488
- ' header' 1 fr
489
- ' links' max-content / 1fr ;
497
+ ' header' max-content
498
+ ' links' 1 fr / 1fr ;
490
499
}
491
500
.title {
492
501
font-size : var (--boxel-font-size-sm );
@@ -495,11 +504,38 @@ export class Author extends CardDef {
495
504
.bio {
496
505
display : none ;
497
506
}
507
+ .links {
508
+ align-self : end ;
509
+ }
498
510
}
499
511
500
512
@container fitted-card (aspect-ratio <= 1.0) and (128px <= height < 148px) {
501
513
.author-fitted {
502
514
--thumbnail-size : 40px ;
515
+ display : grid ;
516
+ grid-template :
517
+ ' img' max-content
518
+ ' header' max-content
519
+ ' links' 1fr / 1fr ;
520
+ }
521
+ .title {
522
+ font-size : var (--boxel-font-size-xs );
523
+ }
524
+ .description ,
525
+ .bio {
526
+ display : none ;
527
+ }
528
+ .links {
529
+ align-self : end ;
530
+ }
531
+ }
532
+
533
+ @container fitted-card (aspect-ratio <= 1.0) and (118px <= height < 128px) {
534
+ .author-fitted {
535
+ --thumbnail-size : 40px ;
536
+ --link-icon-size : 13px ;
537
+ --gap-size : var (--boxel-sp-4xs );
538
+ display : grid ;
503
539
grid-template :
504
540
' img' max-content
505
541
' header' 1fr
@@ -514,11 +550,12 @@ export class Author extends CardDef {
514
550
}
515
551
}
516
552
517
- @container fitted-card (aspect-ratio <= 1.0) and (118px <= height < 128px ) {
553
+ @container fitted-card (aspect-ratio <= 1.0) and (92px <= height < 118px ) {
518
554
.author-fitted {
519
555
--thumbnail-size : 40px ;
520
556
--link-icon-size : 13px ;
521
557
--gap-size : var (--boxel-sp-4xs );
558
+ display : grid ;
522
559
grid-template :
523
560
' img' max-content
524
561
' header' 1fr
@@ -533,9 +570,29 @@ export class Author extends CardDef {
533
570
}
534
571
}
535
572
573
+ @container fitted-card (aspect-ratio <= 1.0) and (height < 92px) {
574
+ .author-fitted {
575
+ --thumbnail-size : 20px ;
576
+ --gap-size : var (--boxel-sp-4xs );
577
+ display : grid ;
578
+ grid-template :
579
+ ' img' max-content
580
+ ' header' 1fr / 1fr ;
581
+ }
582
+ .title {
583
+ font-size : var (--boxel-font-size-xs );
584
+ }
585
+ .description ,
586
+ .bio ,
587
+ .links {
588
+ display : none ;
589
+ }
590
+ }
591
+
536
592
@container fitted-card ((aspect-ratio <= 1.0) and (400px <= height)) {
537
593
.author-fitted {
538
594
--gap-size : var (--boxel-sp-xs );
595
+ display : grid ;
539
596
grid-template :
540
597
' img' max-content
541
598
' header' max-content
@@ -558,6 +615,7 @@ export class Author extends CardDef {
558
615
@container fitted-card ((1.0 < aspect-ratio) and (151px <= height)) {
559
616
.author-fitted {
560
617
--gap-size : var (--boxel-sp-xxs ) var (--boxel-sp-sm );
618
+ display : grid ;
561
619
grid-template :
562
620
' img header' minmax (var (--thumbnail-size ), max-content )
563
621
' img links' 1fr / max-content 1fr ;
@@ -583,6 +641,7 @@ export class Author extends CardDef {
583
641
.author-fitted {
584
642
--gap-size : var (--boxel-sp-xxs ) var (--boxel-sp-sm );
585
643
--thumbnail-size : 50px ;
644
+ display : grid ;
586
645
grid-template :
587
646
' img header' minmax (var (--thumbnail-size ), max-content )
588
647
' img links' 1fr / max-content 1fr ;
@@ -604,10 +663,11 @@ export class Author extends CardDef {
604
663
@container fitted-card ((1.0 < aspect-ratio) and (78px <= height <= 114px)) {
605
664
.author-fitted {
606
665
--gap-size : var (--boxel-sp-xxxs ) var (--boxel-sp-xs );
607
- --thumbnail-size : 30 px ;
666
+ --thumbnail-size : 20 px ;
608
667
--link-icon-size : 15px ;
668
+ display : grid ;
609
669
grid-template :
610
- ' img header' 1 fr
670
+ ' img header' minmax ( var ( --thumbnail-size ), max-content )
611
671
' img links' 1fr / max-content 1fr ;
612
672
}
613
673
.title-group {
@@ -620,12 +680,16 @@ export class Author extends CardDef {
620
680
.description {
621
681
display : none ;
622
682
}
683
+ .links {
684
+ align-self : end ;
685
+ }
623
686
}
624
687
625
- @container fitted-card ((1.0 < aspect-ratio) and (500px <= width) and (58px <= height <= 77px)) {
688
+ @container fitted-card ((1.0 < aspect-ratio) and (500px <= width) and (56px <= height <= 77px)) {
626
689
.author-fitted {
627
690
--gap-size : var (--boxel-sp-xs );
628
691
--thumbnail-size : 34px ;
692
+ display : grid ;
629
693
grid-template : ' img header' 1fr / max-content 1fr ;
630
694
padding : var (--boxel-sp-4xs ) var (--boxel-sp-xs );
631
695
align-items : center ;
@@ -643,6 +707,7 @@ export class Author extends CardDef {
643
707
.author-fitted {
644
708
--gap-size : var (--boxel-sp-xxs );
645
709
--thumbnail-size : 40px ;
710
+ display : grid ;
646
711
grid-template : ' img header' 1fr / max-content 1fr ;
647
712
align-items : center ;
648
713
padding : var (--boxel-sp-xxxs );
@@ -657,10 +722,13 @@ export class Author extends CardDef {
657
722
}
658
723
}
659
724
660
- @container fitted-card ((1.0 < aspect-ratio) and (height <= 57px )) {
725
+ @container fitted-card ((1.0 < aspect-ratio) and (height <= 55px )) {
661
726
.author-fitted {
662
- --gap-size : var (--boxel-sp-xxxs );
727
+ --gap-size : var (--boxel-sp-xs );
663
728
--thumbnail-size : 20px ;
729
+ display : grid ;
730
+ grid-template : ' img header' 1fr / max-content 1fr ;
731
+ align-items : center ;
664
732
padding : var (--boxel-sp-xxxs );
665
733
}
666
734
.author-thumbnail.is-icon {
@@ -676,9 +744,18 @@ export class Author extends CardDef {
676
744
font-size : var (--boxel-font-size-xs );
677
745
line-height : 1.1 ;
678
746
}
747
+ .description {
748
+ display : block ;
749
+ white-space : nowrap ;
750
+ text-overflow : ellipsis ;
751
+ }
752
+ .bio ,
753
+ .links {
754
+ display : none ;
755
+ }
679
756
}
680
757
681
- @container fitted-card ((1.0 < aspect-ratio) and (width <= 100px) and (height <= 57px )) {
758
+ @container fitted-card ((1.0 < aspect-ratio) and (width <= 100px) and (height <= 55px )) {
682
759
.author-fitted {
683
760
display : flex ;
684
761
align-items : center ;
0 commit comments