fix details arrow (#285)
Browse files
src/lib/components/OpenWebSearchResults.svelte
CHANGED
@@ -31,7 +31,7 @@
|
|
31 |
</script>
|
32 |
|
33 |
<details
|
34 |
-
class="
|
35 |
on:toggle={() => {
|
36 |
if (webSearchMessages.length === 0 && webSearchId) {
|
37 |
fetch(`${base}/search/${webSearchId}`)
|
@@ -126,9 +126,13 @@
|
|
126 |
}
|
127 |
}
|
128 |
|
129 |
-
|
130 |
animation-name: grow;
|
131 |
animation-duration: 300ms;
|
132 |
animation-delay: 0ms;
|
133 |
}
|
|
|
|
|
|
|
|
|
134 |
</style>
|
|
|
31 |
</script>
|
32 |
|
33 |
<details
|
34 |
+
class="flex w-fit rounded-xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-gray-900 {classNames} max-w-full"
|
35 |
on:toggle={() => {
|
36 |
if (webSearchMessages.length === 0 && webSearchId) {
|
37 |
fetch(`${base}/search/${webSearchId}`)
|
|
|
126 |
}
|
127 |
}
|
128 |
|
129 |
+
details[open] .content {
|
130 |
animation-name: grow;
|
131 |
animation-duration: 300ms;
|
132 |
animation-delay: 0ms;
|
133 |
}
|
134 |
+
|
135 |
+
details summary::-webkit-details-marker {
|
136 |
+
display: none;
|
137 |
+
}
|
138 |
</style>
|
src/routes/+error.svelte
CHANGED
@@ -10,6 +10,6 @@
|
|
10 |
>
|
11 |
<h1 class="mb-2 text-5xl font-semibold">{$page.status}</h1>
|
12 |
<div class="-mx-8 my-2 h-px bg-gray-200 dark:bg-gray-700" />
|
13 |
-
<h2 class="text-lg">{$page.error?.message}</h2>
|
14 |
</div>
|
15 |
</div>
|
|
|
10 |
>
|
11 |
<h1 class="mb-2 text-5xl font-semibold">{$page.status}</h1>
|
12 |
<div class="-mx-8 my-2 h-px bg-gray-200 dark:bg-gray-700" />
|
13 |
+
<h2 class="max-w-sm text-lg">{$page.error?.message}</h2>
|
14 |
</div>
|
15 |
</div>
|