Skip to content

Commit 0a253db

Browse files
committed
fix: 右矢印のアイコンを変更
1 parent 8dfc61a commit 0a253db

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

website/src/components/ui/FunctionDisplay.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { FC } from "hono/jsx";
22
import type { Func } from "../../types/model";
33
import { FunctionDefinition } from "./FunctionDefinition";
44
import { FunctionParameters } from "./FunctionParameters";
5+
import { ChevronRightIcon } from "../icons";
56

67
type 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

website/src/components/ui/FunctionParameters.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Func } from "../../types/model";
33
import { Tooltip } from "./Tooltip";
44
import { type2href } from "./type2href";
55
import { TypeIcon } from "./TypeIcon";
6+
import { ChevronRightIcon } from "../icons";
67

78
type 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

0 commit comments

Comments
 (0)