tangled
alpha
login
or
join now
vielle.dev
/
pdsls
forked from
pds.ls/pdsls
0
fork
atom
atproto explorer
0
fork
atom
overview
issues
pulls
pipelines
move header icons
handle.invalid
6 months ago
4e50dac6
199001a2
+12
-17
2 changed files
expand all
collapse all
unified
split
src
components
search.tsx
layout.tsx
+1
-11
src/components/search.tsx
···
1
1
import { resolveHandle } from "../utils/api.js";
2
2
-
import { A, useNavigate } from "@solidjs/router";
3
3
-
import Tooltip from "./tooltip.jsx";
2
2
+
import { useNavigate } from "@solidjs/router";
4
3
import { createSignal, Show } from "solid-js";
5
5
-
import { agent } from "../components/login.jsx";
6
4
import { Handle } from "@atcute/lexicons";
7
5
8
6
const Search = () => {
···
76
74
></button>
77
75
</Show>
78
76
</div>
79
79
-
<Show when={agent()}>
80
80
-
<Tooltip
81
81
-
text="Repository"
82
82
-
children={
83
83
-
<A href={`/at://${agent()?.sub}`} class="iconify lucide--book-user text-xl"></A>
84
84
-
}
85
85
-
/>
86
86
-
</Show>
87
77
</div>
88
78
</form>
89
79
);
+11
-6
src/layout.tsx
···
31
31
<Meta name="robots" content="noindex, nofollow" />
32
32
</Show>
33
33
</MetaProvider>
34
34
-
<div class="mb-3 flex w-[22rem] items-center sm:w-[24rem]">
34
34
+
<header class="mb-3 flex w-[22rem] items-center sm:w-[24rem]">
35
35
<div class="flex basis-1/3 gap-x-2">
36
36
<Tooltip text="Relay">
37
37
<A href="/jetstream" class="iconify lucide--radio-tower text-xl"></A>
38
38
</Tooltip>
39
39
-
<AccountManager />
39
39
+
<Show when={agent()}>
40
40
+
<Tooltip text="Go to Repo">
41
41
+
<A href={`/at://${agent()?.sub}`} class="iconify lucide--book-user text-xl"></A>
42
42
+
</Tooltip>
43
43
+
</Show>
44
44
+
<Show when={agent()}>
45
45
+
<RecordEditor create={true} />
46
46
+
</Show>
40
47
</div>
41
48
<div class="flex basis-1/3 items-center justify-center text-center">
42
49
<A
···
48
55
</A>
49
56
</div>
50
57
<div class="flex basis-1/3 items-center justify-end gap-x-2">
51
51
-
<Show when={agent()}>
52
52
-
<RecordEditor create={true} />
53
53
-
</Show>
58
58
+
<AccountManager />
54
59
<Settings />
55
60
</div>
56
56
-
</div>
61
61
+
</header>
57
62
<div class="dark:bg-dark-500 z-1 mb-4 flex max-w-full min-w-[22rem] flex-col items-center bg-neutral-100 text-pretty sm:min-w-[24rem] md:max-w-[48rem]">
58
63
<Show when={location.pathname !== "/jetstream" && location.pathname !== "/firehose"}>
59
64
<Search />