Signed by hanna SSH key fingerprint: SHA256:4g9cWhkAAw8gwqhJUcVbSnGEvdGwklW+1Aa/fMUu59k
assets/base.css +11 −3 crates/web/src/pages.rs +1 −1 crates/web/src/repo.rs +13 −9 assets/base.css +11 −3 Expand 600 hidden lines 601 601 flex : none ; 602 602 } 603 603 604 - 604 + 605 605 . lang-bar-wrap { 606 - margin : 1rem 0 ; 606 + margin : 0 0 1rem ; 607 + } 608 + . lang-bar-summary { 609 + list-style : none ; 610 + cursor : pointer ; 611 + } 612 + . lang-bar-summary :: -webkit-details-marker { 613 + display : none ; 607 614 } 608 615 . lang-bar { 609 616 display : flex ; Expand 10 hidden lines 620 627 } 621 628 . lang-legend { 622 629 list-style : none ; 630 + padding : 0 ; 623 631 display : flex ; 624 632 flex-wrap : wrap ; 625 633 gap : 0.35rem 1.1rem ; 626 - margin-top : 0.75rem ; 634 + margin : 0.75rem 0 0 ; 627 635 } 628 636 . lang-legend li { 629 637 display : flex ;
crates/web/src/pages.rs +1 −1 Expand 1858 hidden lines 1859 1859 div class="entry-row-body" { 1860 1860 span class="entry-row-title" { 1861 1861 span class="badge" { ( k. kind. as_str ( ) ) } 1862 - " " ( k. name. as_deref ( ) . unwrap_or ( "(unnamed)" ) ) 1863 1862 @if k. verified ( ) { 1864 1863 " " span class="badge badge-verified" { "verified" } 1865 1864 } @else { 1866 1865 " " span class="badge badge-unverified" { "unverified" } 1867 1866 } 1867 + " " ( k. name. as_deref ( ) . unwrap_or ( "(unnamed)" ) ) 1868 1868 } 1869 1869 div class="entry-row-meta muted mono" { ( k. fingerprint) } 1870 1870 @if !k. verified ( ) {
crates/web/src/repo.rs +13 −9 Expand 462 hidden lines 463 463 let ( head, tail) = langs. split_at ( langs. len ( ) . min ( MAX_SHOWN ) ) ; 464 464 let other: f64 = tail. iter ( ) . map ( |l| l. percent) . sum ( ) ; 465 465 let pct = |p : f64 | format ! ( "{p:.1}%" ) ; 466 + 467 + 466 468 html ! { 467 - div class="card lang-bar-wrap" { 468 - div class="lang-bar" aria-hidden="true" { 469 - @for l in head { 470 - span class="lang-seg" 471 - style=( format ! ( "width:{:.2}%;background:{}" , l. percent, l. color) ) { } 472 - } 473 - @if other > 0.0 { 474 - span class="lang-seg" style=( format ! ( "width:{other:.2}%;background:#8b8b8b" ) ) { } 469 + details class="card lang-bar-wrap" { 470 + summary class="lang-bar-summary" title="Show languages" { 471 + div class="lang-bar" aria-hidden="true" { 472 + @for l in head { 473 + span class="lang-seg" 474 + style=( format ! ( "width:{:.2}%;background:{}" , l. percent, l. color) ) { } 475 + } 476 + @if other > 0.0 { 477 + span class="lang-seg" style=( format ! ( "width:{other:.2}%;background:#8b8b8b" ) ) { } 478 + } 475 479 } 476 480 } 477 481 ul class="lang-legend" { Expand 57 hidden lines 535 539 aria-label="Search this repository" ; 536 540 button class="btn" type ="submit" { ( icon ( Icon :: Search ) ) span { "Search" } } 537 541 } 538 - ( tree_table ( & ctx. owner. username, & ctx. repo. path, & rev_name, "" , & entries) ) 539 542 @if !langs. is_empty ( ) { 540 543 ( language_bar ( & langs) ) 541 544 } 545 + ( tree_table ( & ctx. owner. username, & ctx. repo. path, & rev_name, "" , & entries) ) 542 546 @if let Some ( rendered) = readme { 543 547 div class="card markdown readme" { ( rendered) } 544 548 }