@@ -21,7 +21,7 @@ import { RadioGroup, Radio } from "@/components/radio"
2121import { Button } from "@/app/conf/_design-system/button"
2222import { Tag } from "@/app/conf/_design-system/tag"
2323import SearchIcon from "@/app/conf/_design-system/pixelarticons/search.svg?svgr"
24- import ArrowBarLeft from "@/app/conf/_design-system/pixelarticons/arrow-bar-left .svg?svgr"
24+ import CaretDown from "@/app/conf/_design-system/pixelarticons/caret-down .svg?svgr"
2525import { SidebarFooter } from "./sidebar"
2626
2727type PackageInfo = {
@@ -339,7 +339,7 @@ export function CodePage({ allTags, data }: CodePageProps) {
339339 < div className = "relative mt-8 flex md:gap-8" >
340340 < aside >
341341 < Collapse horizontal isOpen = { showSidebar } >
342- < label className = "flex items-center gap-1 border border-neu-300 bg-neu-0 p-2 focus-within:gql-focus-outline " >
342+ < label className = "focus-within:gql-focus-outline flex items-center gap-1 border border-neu-300 bg-neu-0 p-2" >
343343 < SearchIcon className = "size-5 text-neu-800" />
344344 < input
345345 value = { search }
@@ -440,35 +440,33 @@ export function CodePage({ allTags, data }: CodePageProps) {
440440 { hasMetadata && (
441441 < div
442442 className = { clsx (
443- "flex items-center gap-5 max-md:text-xs" ,
444- "[&>:not(:last-child)]:border-r [&>:not(:last-child)]:border-neu-500 [&>:not(:last-child)]:pr-5" ,
443+ "flex place-items-center gap-2 text-sm [&>*:not(:first-of-type):before]:[content:'/__']" ,
445444 ) }
446445 >
447- { lastRelease && (
448- < span > Last release { lastRelease } </ span >
449- ) }
450446 { formattedStars && (
451447 < span className = "flex items-center gap-1" >
452- < StarIcon className = "text-primary" />
453- { formattedStars }
448+ ★{ formattedStars }
454449 </ span >
455450 ) }
456451 { license && < span > { license } </ span > }
452+ { lastRelease && (
453+ < span > Last released { lastRelease } </ span >
454+ ) }
457455 </ div >
458456 ) }
459457 </ article >
460458
461459 { compiledSource && (
462- < details className = "bg-neu-100 dark:bg-neu-50/50 dark:[&:open]:bg-neu-0" >
460+ < details >
463461 < summary
464462 className = { clsx (
465- "flex justify-between px-8 py-5 text-primary lg:px-12 dark:[[open]>&]:shadow-[-5px_10px_30px_20px_#1b1b1b4d]" ,
466- "[[open]>&]:bg-neu-200 dark:[[open]>&]:bg-neu-50/50 " ,
463+ "flex justify-between px-8 py-5 text-pri-base dark:[[open]>&]:shadow-[-5px_10px_30px_20px_#1b1b1b4d]" ,
464+ "border-t border-neu-100 dark:border-neu-50 [[open]>&]:bg-neu-200 dark:[[open]>&]:bg-neu-50/25 " ,
467465 "cursor-pointer" ,
468466 ) }
469467 >
470468 README
471- < ChevronLeftIcon className = "size-5 -rotate-90 transition-transform [[open]>*>&]:rotate-90 " />
469+ < CaretDown className = "size-5 [[open]>*>&]:rotate-180 " />
472470 </ summary >
473471 < div
474472 className = "px-8 py-5 lg:px-12"
0 commit comments