File tree Expand file tree Collapse file tree 2 files changed +10
-16
lines changed
website/src/components/ui Expand file tree Collapse file tree 2 files changed +10
-16
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { FC } from "hono/jsx";
22import type { Func } from "../../types/model" ;
33import { FunctionDefinition } from "./FunctionDefinition" ;
44import { FunctionParameters } from "./FunctionParameters" ;
5+ import { ChevronRightIcon } from "../icons" ;
56
67type FunctionDisplayProps = {
78 func : Func ;
@@ -26,15 +27,11 @@ export const FunctionDisplay: FC<FunctionDisplayProps> = ({
2627 </ div >
2728
2829 { func . example && isExampleFolding && (
29- < details class = "my-4 folding-example" >
30+ < details class = "my-4 folding-example group " >
3031 < summary class = "flex items-center gap-1 text-sm font-medium text-blue-600 cursor-pointer hover:text-blue-800" >
31- < img
32- src = "/assets/icons/16-arrow-right.svg"
33- alt = ""
34- width = "16"
35- height = "16"
36- class = "transform transition-transform duration-200 group-open:rotate-90"
37- />
32+ < div class = "w-4 h-4 text-gray-400 transform transition-transform duration-200 group-open:rotate-90" >
33+ < ChevronRightIcon />
34+ </ div >
3835 例を表示
3936 </ summary >
4037 < div
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import type { Func } from "../../types/model";
33import { Tooltip } from "./Tooltip" ;
44import { type2href } from "./type2href" ;
55import { TypeIcon } from "./TypeIcon" ;
6+ import { ChevronRightIcon } from "../icons" ;
67
78type FunctionParametersProps = {
89 func : Func ;
@@ -81,15 +82,11 @@ export const FunctionParameters: FC<FunctionParametersProps> = ({
8182 ) }
8283
8384 { param . example && (
84- < details class = "mt-4 folding-example" >
85+ < details class = "mt-4 folding-example group " >
8586 < summary class = "flex items-center gap-1 text-sm font-medium text-blue-600 cursor-pointer hover:text-blue-800" >
86- < img
87- src = "/assets/icons/16-arrow-right.svg"
88- alt = ""
89- width = "16"
90- height = "16"
91- class = "transform transition-transform duration-200 group-open:rotate-90"
92- />
87+ < div class = "w-4 h-4 text-gray-400 transform transition-transform duration-200 group-open:rotate-90" >
88+ < ChevronRightIcon />
89+ </ div >
9390 例を表示
9491 </ summary >
9592 < div
You can’t perform that action at this time.
0 commit comments