Skip to content

Commit 0279bee

Browse files
committed
Fix large screen layout
1 parent 0eb71e8 commit 0279bee

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

src/routes/+page.svelte

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
refreshAccessToken,
1111
formatDate_PREFERREDTIME,
1212
BlockNote,
13-
1413
isMachineTimeSameAsPreferred
15-
1614
} from "@davidnet/svelte-ui";
1715
import { onMount, onDestroy } from "svelte";
1816
@@ -46,10 +44,7 @@
4644
4745
async function fetchStatusData() {
4846
try {
49-
const endpoints = [
50-
"/api/uptimekuma/down",
51-
"/api/uptimekuma/maintenance",
52-
];
47+
const endpoints = ["/api/uptimekuma/down", "/api/uptimekuma/maintenance"];
5348
5449
// Als intern: voeg ook interne endpoints toe
5550
if (sessionInfo?.internal) {
@@ -144,7 +139,6 @@
144139
<Space height="var(--token-space-6)" />
145140
</FlexWrapper>
146141

147-
148142
<!-- 🆕 Dynamische blokken met publieke + interne statussen -->
149143
<FlexWrapper width="80%" justifycontent="flex-start" direction="row" gap="var(--token-space-4)" wrap="wrap">
150144
{#if downServices.length > 0}
@@ -158,7 +152,8 @@
158152
href: "https://status.davidnet.net",
159153
onClick: () => {}
160154
}
161-
]}>
155+
]}
156+
>
162157
{#each downServices as name}
163158
<p>{name} is experiencing issues.</p>
164159
{/each}
@@ -176,7 +171,8 @@
176171
href: "https://status.davidnet.net",
177172
onClick: () => {}
178173
}
179-
]}>
174+
]}
175+
>
180176
{#each maintenanceServices as name}
181177
<p>{name} is currently under maintenance.</p>
182178
{/each}
@@ -194,7 +190,8 @@
194190
href: "https://account.davidnet.net/account/settings/preferences",
195191
onClick: () => {}
196192
}
197-
]}>
193+
]}
194+
>
198195
It seems your device's time settings do not match your preferred timezone. This may lead to you seeing incorrect timestamps.
199196
</BlockNote>
200197
{/if}
@@ -212,7 +209,7 @@
212209

213210
<FlexWrapper alignitems="flex-start" width="80%">
214211
<h2>Apps:</h2>
215-
<FlexWrapper gap="var(--token-space-3)" justifycontent="space-evenly" direction="row" wrap="wrap">
212+
<FlexWrapper gap="var(--token-space-3)" justifycontent={width > 600 ? "flex-start" : "space-evenly"} direction="row" wrap="wrap">
216213
<a class="option" href="https://kanban.davidnet.net">
217214
<FlexWrapper width="100%" height="100%" gap="var(--token-space-2)">
218215
<Icon size="4rem" icon="view_kanban" />
@@ -255,7 +252,7 @@
255252
{#if sessionInfo?.internal}
256253
<FlexWrapper alignitems="flex-start" width="80%">
257254
<h2>Internal:</h2>
258-
<FlexWrapper gap="var(--token-space-3)" justifycontent="space-evenly" direction="row" wrap="wrap">
255+
<FlexWrapper gap="var(--token-space-3)" justifycontent={width > 600 ? "flex-start" : "space-evenly"} direction="row" wrap="wrap">
259256
<a class="option" href="https://homeassistant.davidnet.net">
260257
<FlexWrapper width="100%" height="100%" gap="var(--token-space-2)">
261258
<Icon size="4rem" icon="home" />

0 commit comments

Comments
 (0)