Skip to content

Commit b436008

Browse files
fix: hide default details markers for Safari (#31)
1 parent 2b9714f commit b436008

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/ui/FunctionDisplay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const FunctionDisplay: FC<FunctionDisplayProps> = ({
3232
case "example":
3333
return isExampleFolding ? (
3434
<details class="folding-example group">
35-
<summary class="flex items-center gap-1 text-sm font-medium text-blue-600 cursor-pointer hover:text-blue-800">
35+
<summary class="flex items-center gap-1 text-sm font-medium text-blue-600 cursor-pointer hover:text-blue-800 marker:hidden">
3636
<div class="w-4 h-4 text-gray-400 transform transition-transform duration-200 group-open:rotate-90">
3737
<ChevronRightIcon />
3838
</div>

src/components/ui/FunctionParameters.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const FunctionParameters: FC<FunctionParametersProps> = ({
7474
case "example":
7575
return (
7676
<details class="folding-example group">
77-
<summary class="flex items-center gap-1 text-sm font-medium text-blue-600 cursor-pointer hover:text-blue-800">
77+
<summary class="flex items-center gap-1 text-sm font-medium text-blue-600 cursor-pointer hover:text-blue-800 marker:hidden">
7878
<div class="w-4 h-4 text-gray-400 transform transition-transform duration-200 group-open:rotate-90">
7979
<ChevronRightIcon />
8080
</div>
@@ -99,7 +99,7 @@ export const FunctionParameters: FC<FunctionParametersProps> = ({
9999
// The list of strings can be very long. For example, `page.paper` has 100+ possibilities.
100100
open={param.strings.length <= 5}
101101
>
102-
<summary class="flex items-center gap-1 text-sm font-medium text-blue-600 cursor-pointer hover:text-blue-800">
102+
<summary class="flex items-center gap-1 text-sm font-medium text-blue-600 cursor-pointer hover:text-blue-800 marker:hidden">
103103
<div class="w-4 h-4 text-gray-400 transform transition-transform duration-200 group-open:rotate-90">
104104
<ChevronRightIcon />
105105
</div>

0 commit comments

Comments
 (0)