tangled
alpha
login
or
join now
moth11.net
/
xcvr
2
fork
atom
frontend for xcvr appview
2
fork
atom
overview
issues
pulls
pipelines
bebe
moth11.net
6 months ago
f6f87bde
1f35399d
+11
-1
1 changed file
expand all
collapse all
unified
split
src
routes
c
[handle]
[rkey]
+page.svelte
+11
-1
src/routes/c/[handle]/[rkey]/+page.svelte
···
35
35
$effect(() => {
36
36
console.log(data.channelView);
37
37
});
38
38
+
let innerWidth = $state(0);
39
39
+
let isDesktop = $derived(innerWidth > 1000);
38
40
</script>
39
41
40
40
-
<main id="transceiver">
42
42
+
<svelte:window bind:innerWidth />
43
43
+
<main id="transceiver" class={isDesktop ? "desktop" : "mobile"}>
41
44
{#if !ctx?.connected}
42
45
<div>
43
46
connecting... <span class="error-message"
···
216
219
position: relative;
217
220
display: flex;
218
221
flex-direction: column;
222
222
+
}
223
223
+
#transceiver.desktop {
224
224
+
height: 100vh;
225
225
+
}
226
226
+
#transceiver.mobile {
227
227
+
height: calc(100vh - 2.25rem);
228
228
+
height: calc(100dvh - 2.25rem);
219
229
}
220
230
#settingsifier {
221
231
align-self: flex-start;