+5
-1
src/views/car.tsx
+5
-1
src/views/car.tsx
···
11
11
import { isTouchDevice } from "../layout.jsx";
12
12
import { localDateFromTimestamp } from "../utils/date.js";
13
13
14
+
const isIOS =
15
+
/iPad|iPhone|iPod/.test(navigator.userAgent) ||
16
+
(navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1);
17
+
14
18
// Convert CBOR-decoded objects to JSON-friendly format
15
19
const toJsonValue = (obj: unknown): JSONType => {
16
20
if (obj === null || obj === undefined) return null;
···
235
239
<label class="dark:hover:bg-dark-200 dark:shadow-dark-700 dark:active:bg-dark-100 box-border flex h-8 items-center justify-center gap-1 rounded-lg border-[0.5px] border-neutral-300 bg-neutral-50 px-3 py-1.5 text-sm shadow-xs select-none hover:bg-neutral-100 active:bg-neutral-200 dark:border-neutral-700 dark:bg-neutral-800">
236
240
<input
237
241
type="file"
238
-
accept=".car,application/vnd.ipld.car"
242
+
accept={isIOS ? undefined : ".car,application/vnd.ipld.car"}
239
243
onChange={props.onFileChange}
240
244
class="hidden"
241
245
/>