@leitwerk-dev/ui 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ChronicleMarkdown-iH1VLv7x.js → ChronicleMarkdown-B1hD4HFS.js} +2 -2
- package/dist/assets/FutureLaunchDetailPage-Dy3FlLih.js +1 -0
- package/dist/assets/FutureLaunchDetailPage-UFgp7Ju4.css +1 -0
- package/dist/assets/GenericLauncher-BPEQjJ1J.js +1 -0
- package/dist/assets/HomePage-4Q7aqPBl.css +1 -0
- package/dist/assets/HomePage-E41Krxko.js +1 -0
- package/dist/assets/PageHeader-DDgWPeHS.js +1 -0
- package/dist/assets/{PageHeader-6PdvYODN.css → PageHeader-vhyfX7xT.css} +1 -1
- package/dist/assets/ProcessActionsMenu-BWlFe5c4.css +1 -0
- package/dist/assets/ProcessActionsMenu-cI0j2LWe.js +1 -0
- package/dist/assets/ProcessDetailPage-DVHldJgi.js +12 -0
- package/dist/assets/{ProcessDetailPage-CSrjzajF.css → ProcessDetailPage-Oh6ld320.css} +1 -1
- package/dist/assets/ProcessFlowDiagram-C6m6V_cB.js +2 -0
- package/dist/assets/ProcessesPage-B2QGyCZO.js +1 -0
- package/dist/assets/ScheduleDateTimePicker-aey_oMiH.js +1 -0
- package/dist/assets/SkillsPage-MPITMvhn.css +1 -0
- package/dist/assets/SkillsPage-iB4sbq7r.js +2 -0
- package/dist/assets/WatchersPage-BOSgjtw0.css +1 -0
- package/dist/assets/WatchersPage-l0rwv-Nx.js +1 -0
- package/dist/assets/{api-HGtUzekR.js → api-CtKbU0lT.js} +1 -1
- package/dist/assets/{dist-DVNpSD5l.js → dist-eOPUi0B8.js} +2 -2
- package/dist/assets/index-B4flHG_s.js +7 -0
- package/dist/assets/index-DunTIQSW.css +1 -0
- package/dist/assets/{index-client-BqF3_t3P.js → index-client-CnG8mWmF.js} +2 -2
- package/dist/assets/retry-config.svelte-WukHimiy.js +1 -0
- package/dist/assets/{router.svelte-C2wi6I7k.js → router.svelte-2RvxUvs5.js} +1 -1
- package/dist/index.html +7 -7
- package/package.json +6 -6
- package/src/App.svelte +5 -2
- package/src/chronicle/components/ChronicleFlow.svelte +2 -0
- package/src/chronicle/components/ChronicleRecoverySection.svelte +21 -16
- package/src/chronicle/components/ChronicleTurnCluster.svelte +3 -0
- package/src/chronicle/components/ChronicleTurnProgress.svelte +71 -0
- package/src/chronicle/components/ChronicleTurnRail.svelte +12 -3
- package/src/chronicle/lib/chronicle-projection.ts +11 -0
- package/src/components/ModalShell.svelte +31 -8
- package/src/components/PageHeader.svelte +29 -2
- package/src/components/ProcessActionsMenu.svelte +38 -6
- package/src/lib/api.ts +7 -0
- package/src/pages/FutureLaunchDetailPage.svelte +1 -3
- package/src/pages/HomePage.svelte +1 -4
- package/src/pages/ProcessDetailPage.svelte +3 -0
- package/src/pages/ProcessGallery.svelte +0 -2
- package/src/pages/SkillsPage.svelte +10 -13
- package/src/pages/WatchersPage.svelte +0 -2
- package/src/pages/process-detail/ProcessDetailChronicle.svelte +307 -8
- package/src/pages/process-detail/ProcessDetailHeader.svelte +43 -24
- package/src/pages/process-detail/process-detail-view-model.ts +1 -0
- package/src/shell/AppShell.svelte +256 -5
- package/src/shell/RouteLoadBoundary.svelte +48 -12
- package/src/shell/Sidebar.svelte +254 -85
- package/dist/assets/FutureLaunchDetailPage-BJphZBFH.js +0 -1
- package/dist/assets/FutureLaunchDetailPage-VPMBtpYc.css +0 -1
- package/dist/assets/GenericLauncher-tr1to52a.js +0 -1
- package/dist/assets/HomePage-CSHVQefI.js +0 -1
- package/dist/assets/HomePage-DYh_QHXv.css +0 -1
- package/dist/assets/PageHeader-C4j3zJKF.js +0 -1
- package/dist/assets/ProcessActionsMenu-BT2r9vO8.css +0 -1
- package/dist/assets/ProcessActionsMenu-gNiZGUCZ.js +0 -1
- package/dist/assets/ProcessDetailPage-CGyVxjeH.js +0 -12
- package/dist/assets/ProcessFlowDiagram-BX_Zjm2n.js +0 -2
- package/dist/assets/ProcessesPage-D3jjufse.js +0 -1
- package/dist/assets/ScheduleDateTimePicker-D72J6EhE.js +0 -1
- package/dist/assets/SkillsPage-B30FAFia.css +0 -1
- package/dist/assets/SkillsPage-CcYm4ATy.js +0 -2
- package/dist/assets/WatchersPage-Bac86WLp.js +0 -1
- package/dist/assets/WatchersPage-Dnfi1zUK.css +0 -1
- package/dist/assets/index-66T4Gmbl.css +0 -1
- package/dist/assets/index-ChVsVf6R.js +0 -7
- package/dist/assets/retry-config.svelte-DFKCJtCe.js +0 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import type { Actor } from "@leitwerk-dev/domain";
|
|
3
|
+
import { tick } from "svelte";
|
|
2
4
|
import BrowserUiExtensionIndicatorHost from "../components/BrowserUiExtensionIndicatorHost.svelte";
|
|
3
5
|
import KeyboardShortcutsModal from "../components/KeyboardShortcutsModal.svelte";
|
|
4
6
|
import { isPlainShortcut, isTextEntryTarget } from "../lib/keyboard.js";
|
|
@@ -9,6 +11,7 @@ import {
|
|
|
9
11
|
toggleKeyboardShortcutHelp,
|
|
10
12
|
} from "../lib/keyboard-shortcuts-help.js";
|
|
11
13
|
import type { Route } from "../lib/router.svelte";
|
|
14
|
+
import { buildHomePath, followLink } from "../lib/router.svelte.js";
|
|
12
15
|
import {
|
|
13
16
|
browserUiExtensionShellIndicators,
|
|
14
17
|
browserUiExtensionShortcutHelpItems,
|
|
@@ -19,6 +22,8 @@ import Sidebar from "./Sidebar.svelte";
|
|
|
19
22
|
|
|
20
23
|
interface Props {
|
|
21
24
|
route: Route;
|
|
25
|
+
authEnabled: boolean;
|
|
26
|
+
actor: Actor;
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
const homeShortcutItems: readonly KeyboardShortcutItem[] = [
|
|
@@ -45,7 +50,89 @@ const processShortcutItems: readonly KeyboardShortcutItem[] = [
|
|
|
45
50
|
{ keys: ["?"], label: "Toggle shortcuts" },
|
|
46
51
|
];
|
|
47
52
|
|
|
48
|
-
let { route }: Props = $props();
|
|
53
|
+
let { route, authEnabled, actor }: Props = $props();
|
|
54
|
+
|
|
55
|
+
const mobileSidebarQuery = "(max-width: 960px)";
|
|
56
|
+
const homePath = buildHomePath();
|
|
57
|
+
let mobileLayout = $state(false);
|
|
58
|
+
let mobileSidebarOpen = $state(false);
|
|
59
|
+
let mobileMenuButton = $state<HTMLButtonElement | null>(null);
|
|
60
|
+
let mobileDrawer = $state<HTMLDivElement | null>(null);
|
|
61
|
+
let observedRouteKey = $state<string | null>(null);
|
|
62
|
+
|
|
63
|
+
function closeMobileSidebar(options: { restoreFocus?: boolean } = {}) {
|
|
64
|
+
if (!mobileSidebarOpen) return;
|
|
65
|
+
mobileSidebarOpen = false;
|
|
66
|
+
if (options.restoreFocus !== false) {
|
|
67
|
+
void tick().then(() => mobileMenuButton?.focus());
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
async function openMobileSidebar() {
|
|
72
|
+
mobileSidebarOpen = true;
|
|
73
|
+
await tick();
|
|
74
|
+
mobileDrawer?.querySelector<HTMLButtonElement>('[data-action="close-mobile-sidebar"]')?.focus();
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
$effect(() => {
|
|
78
|
+
const media =
|
|
79
|
+
typeof window.matchMedia === "function" ? window.matchMedia(mobileSidebarQuery) : null;
|
|
80
|
+
const updateMobileLayout = () => {
|
|
81
|
+
mobileLayout = media?.matches ?? window.innerWidth <= 960;
|
|
82
|
+
if (!mobileLayout) closeMobileSidebar({ restoreFocus: false });
|
|
83
|
+
};
|
|
84
|
+
updateMobileLayout();
|
|
85
|
+
if (media) {
|
|
86
|
+
media.addEventListener("change", updateMobileLayout);
|
|
87
|
+
return () => media.removeEventListener("change", updateMobileLayout);
|
|
88
|
+
}
|
|
89
|
+
window.addEventListener("resize", updateMobileLayout);
|
|
90
|
+
return () => window.removeEventListener("resize", updateMobileLayout);
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
$effect(() => {
|
|
94
|
+
const routeKey = JSON.stringify(route);
|
|
95
|
+
if (observedRouteKey !== null && observedRouteKey !== routeKey) {
|
|
96
|
+
closeMobileSidebar({ restoreFocus: false });
|
|
97
|
+
}
|
|
98
|
+
observedRouteKey = routeKey;
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
$effect(() => {
|
|
102
|
+
if (!mobileLayout || !mobileSidebarOpen) return;
|
|
103
|
+
|
|
104
|
+
const previousOverflow = document.body.style.overflow;
|
|
105
|
+
document.body.style.overflow = "hidden";
|
|
106
|
+
const handleKeydown = (event: KeyboardEvent) => {
|
|
107
|
+
if (event.key === "Escape") {
|
|
108
|
+
event.preventDefault();
|
|
109
|
+
closeMobileSidebar();
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
if (event.key !== "Tab" || !mobileDrawer) return;
|
|
113
|
+
|
|
114
|
+
const focusable = Array.from(
|
|
115
|
+
mobileDrawer.querySelectorAll<HTMLElement>(
|
|
116
|
+
'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',
|
|
117
|
+
),
|
|
118
|
+
).filter((element) => element.offsetParent !== null);
|
|
119
|
+
const first = focusable[0];
|
|
120
|
+
const last = focusable.at(-1);
|
|
121
|
+
if (!first || !last) return;
|
|
122
|
+
if (event.shiftKey && document.activeElement === first) {
|
|
123
|
+
event.preventDefault();
|
|
124
|
+
last.focus();
|
|
125
|
+
} else if (!event.shiftKey && document.activeElement === last) {
|
|
126
|
+
event.preventDefault();
|
|
127
|
+
first.focus();
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
document.addEventListener("keydown", handleKeydown);
|
|
131
|
+
return () => {
|
|
132
|
+
document.body.style.overflow = previousOverflow;
|
|
133
|
+
document.removeEventListener("keydown", handleKeydown);
|
|
134
|
+
};
|
|
135
|
+
});
|
|
49
136
|
|
|
50
137
|
const shortcutHelpTitle = $derived.by(() => {
|
|
51
138
|
if (route.page === "home") {
|
|
@@ -140,7 +227,59 @@ $effect(() => {
|
|
|
140
227
|
</script>
|
|
141
228
|
|
|
142
229
|
<div class="app-shell" data-shell="app">
|
|
143
|
-
<
|
|
230
|
+
<header class="mobile-shell-bar">
|
|
231
|
+
<a href={homePath} class="mobile-brand" onclick={(event) => followLink(event, homePath)}>
|
|
232
|
+
Leitwerk
|
|
233
|
+
</a>
|
|
234
|
+
<button
|
|
235
|
+
bind:this={mobileMenuButton}
|
|
236
|
+
type="button"
|
|
237
|
+
class="mobile-menu-button"
|
|
238
|
+
data-action="open-mobile-sidebar"
|
|
239
|
+
aria-label="Open navigation"
|
|
240
|
+
aria-controls="mobile-sidebar-drawer"
|
|
241
|
+
aria-expanded={mobileSidebarOpen}
|
|
242
|
+
onclick={openMobileSidebar}
|
|
243
|
+
>
|
|
244
|
+
<svg viewBox="0 0 24 24" aria-hidden="true">
|
|
245
|
+
<path d="M4 7h16M4 12h16M4 17h16" />
|
|
246
|
+
</svg>
|
|
247
|
+
</button>
|
|
248
|
+
</header>
|
|
249
|
+
<button
|
|
250
|
+
type="button"
|
|
251
|
+
class="mobile-drawer-backdrop"
|
|
252
|
+
class:is-open={mobileSidebarOpen}
|
|
253
|
+
aria-label="Close navigation"
|
|
254
|
+
aria-hidden={!mobileSidebarOpen}
|
|
255
|
+
tabindex="-1"
|
|
256
|
+
onclick={() => closeMobileSidebar()}
|
|
257
|
+
></button>
|
|
258
|
+
<div
|
|
259
|
+
bind:this={mobileDrawer}
|
|
260
|
+
id="mobile-sidebar-drawer"
|
|
261
|
+
class="mobile-sidebar-drawer"
|
|
262
|
+
class:is-open={mobileSidebarOpen}
|
|
263
|
+
data-mobile-sidebar="drawer"
|
|
264
|
+
data-mobile-sidebar-state={mobileSidebarOpen ? "open" : "closed"}
|
|
265
|
+
role={mobileLayout ? "dialog" : undefined}
|
|
266
|
+
aria-modal={mobileLayout ? "true" : undefined}
|
|
267
|
+
aria-label={mobileLayout ? "Navigation" : undefined}
|
|
268
|
+
inert={mobileLayout && !mobileSidebarOpen}
|
|
269
|
+
>
|
|
270
|
+
<button
|
|
271
|
+
type="button"
|
|
272
|
+
class="mobile-drawer-close"
|
|
273
|
+
data-action="close-mobile-sidebar"
|
|
274
|
+
aria-label="Close navigation"
|
|
275
|
+
onclick={() => closeMobileSidebar()}
|
|
276
|
+
>
|
|
277
|
+
<svg viewBox="0 0 24 24" aria-hidden="true">
|
|
278
|
+
<path d="m6 6 12 12M18 6 6 18" />
|
|
279
|
+
</svg>
|
|
280
|
+
</button>
|
|
281
|
+
<Sidebar currentRoute={route} {authEnabled} {actor} />
|
|
282
|
+
</div>
|
|
144
283
|
{#if $browserUiExtensionShellIndicators.length > 0}
|
|
145
284
|
<div class="browser-ui-extension-indicators" data-section="browser-ui-extension-indicators">
|
|
146
285
|
{#each $browserUiExtensionShellIndicators as indicator (`${indicator.extensionManifestId}:${indicator.id}`)}
|
|
@@ -176,6 +315,7 @@ $effect(() => {
|
|
|
176
315
|
<RouteLoadBoundary
|
|
177
316
|
load={import("../pages/ProcessDetailPage.svelte")}
|
|
178
317
|
props={{ instanceId: route.params.instanceId }}
|
|
318
|
+
viewportMode="workspace"
|
|
179
319
|
/>
|
|
180
320
|
{/if}
|
|
181
321
|
</main>
|
|
@@ -190,6 +330,16 @@ $effect(() => {
|
|
|
190
330
|
/>
|
|
191
331
|
|
|
192
332
|
<style>
|
|
333
|
+
.mobile-shell-bar,
|
|
334
|
+
.mobile-drawer-backdrop,
|
|
335
|
+
.mobile-drawer-close {
|
|
336
|
+
display: none;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.mobile-sidebar-drawer {
|
|
340
|
+
display: contents;
|
|
341
|
+
}
|
|
342
|
+
|
|
193
343
|
.app-shell {
|
|
194
344
|
display: flex;
|
|
195
345
|
align-items: stretch;
|
|
@@ -236,14 +386,115 @@ $effect(() => {
|
|
|
236
386
|
overflow: visible;
|
|
237
387
|
}
|
|
238
388
|
|
|
239
|
-
.
|
|
240
|
-
|
|
389
|
+
.mobile-shell-bar {
|
|
390
|
+
position: sticky;
|
|
391
|
+
top: 0;
|
|
392
|
+
z-index: 40;
|
|
393
|
+
display: flex;
|
|
394
|
+
align-items: center;
|
|
395
|
+
justify-content: space-between;
|
|
396
|
+
min-height: calc(56px + env(safe-area-inset-top));
|
|
397
|
+
padding: env(safe-area-inset-top) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
|
|
398
|
+
border-bottom: 1px solid color-mix(in srgb, var(--chronicle-border) 88%, white 12%);
|
|
399
|
+
background: color-mix(in srgb, var(--chronicle-sidebar-surface) 96%, white 4%);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.mobile-brand {
|
|
403
|
+
color: var(--chronicle-text);
|
|
404
|
+
font-size: var(--type-title-sm);
|
|
405
|
+
font-weight: 750;
|
|
406
|
+
letter-spacing: -0.015em;
|
|
407
|
+
text-decoration: none;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.mobile-menu-button,
|
|
411
|
+
.mobile-drawer-close {
|
|
412
|
+
display: inline-grid;
|
|
413
|
+
place-items: center;
|
|
414
|
+
width: 44px;
|
|
415
|
+
height: 44px;
|
|
416
|
+
padding: 0;
|
|
417
|
+
border: 1px solid var(--chronicle-border);
|
|
418
|
+
border-radius: var(--radius-sm);
|
|
419
|
+
background: var(--chronicle-card-surface);
|
|
420
|
+
color: var(--chronicle-text);
|
|
421
|
+
cursor: pointer;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.mobile-menu-button svg,
|
|
425
|
+
.mobile-drawer-close svg {
|
|
426
|
+
width: 21px;
|
|
427
|
+
height: 21px;
|
|
428
|
+
fill: none;
|
|
429
|
+
stroke: currentColor;
|
|
430
|
+
stroke-linecap: round;
|
|
431
|
+
stroke-width: 1.8;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.mobile-menu-button:focus-visible,
|
|
435
|
+
.mobile-drawer-close:focus-visible,
|
|
436
|
+
.mobile-brand:focus-visible {
|
|
437
|
+
outline: 2px solid var(--chronicle-accent);
|
|
438
|
+
outline-offset: 2px;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.mobile-drawer-backdrop {
|
|
442
|
+
position: fixed;
|
|
443
|
+
inset: 0;
|
|
444
|
+
z-index: 50;
|
|
445
|
+
display: block;
|
|
446
|
+
padding: 0;
|
|
447
|
+
border: 0;
|
|
448
|
+
background: rgba(24, 33, 43, 0.38);
|
|
449
|
+
opacity: 0;
|
|
450
|
+
pointer-events: none;
|
|
451
|
+
transition: opacity 180ms ease-out;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.mobile-drawer-backdrop.is-open {
|
|
455
|
+
opacity: 1;
|
|
456
|
+
pointer-events: auto;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.mobile-sidebar-drawer {
|
|
460
|
+
position: fixed;
|
|
461
|
+
inset: 0 auto 0 0;
|
|
462
|
+
z-index: 60;
|
|
463
|
+
display: block;
|
|
464
|
+
width: min(88vw, 360px);
|
|
465
|
+
max-width: 100%;
|
|
466
|
+
background: var(--chronicle-sidebar-surface);
|
|
467
|
+
box-shadow: 18px 0 40px rgba(24, 33, 43, 0.14);
|
|
468
|
+
transform: translateX(-102%);
|
|
469
|
+
visibility: hidden;
|
|
470
|
+
transition:
|
|
471
|
+
transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
|
|
472
|
+
visibility 0s linear 220ms;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.mobile-sidebar-drawer.is-open {
|
|
476
|
+
transform: translateX(0);
|
|
477
|
+
visibility: visible;
|
|
478
|
+
transition-delay: 0s;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.mobile-drawer-close {
|
|
482
|
+
position: absolute;
|
|
483
|
+
top: max(10px, env(safe-area-inset-top));
|
|
484
|
+
right: max(10px, env(safe-area-inset-right));
|
|
485
|
+
z-index: 2;
|
|
241
486
|
}
|
|
242
487
|
|
|
243
488
|
.content-region {
|
|
244
|
-
order: 1;
|
|
245
489
|
padding: 14px;
|
|
246
490
|
overflow: visible;
|
|
247
491
|
}
|
|
248
492
|
}
|
|
493
|
+
|
|
494
|
+
@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
|
|
495
|
+
.mobile-drawer-backdrop,
|
|
496
|
+
.mobile-sidebar-drawer {
|
|
497
|
+
transition: none;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
249
500
|
</style>
|
|
@@ -4,24 +4,52 @@ import type { Component } from "svelte";
|
|
|
4
4
|
interface Props {
|
|
5
5
|
load: Promise<{ default: Component<P> }>;
|
|
6
6
|
props: P;
|
|
7
|
+
viewportMode?: "page" | "workspace";
|
|
7
8
|
}
|
|
8
9
|
|
|
9
|
-
let { load, props }: Props = $props();
|
|
10
|
+
let { load, props, viewportMode = "page" }: Props = $props();
|
|
10
11
|
</script>
|
|
11
12
|
|
|
12
|
-
{
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
{
|
|
16
|
-
|
|
17
|
-
{
|
|
18
|
-
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
<div class="route-viewport" data-role="route-viewport" data-mode={viewportMode}>
|
|
14
|
+
{#await load}
|
|
15
|
+
<div class="route-status" role="status">Loading view…</div>
|
|
16
|
+
{:then loaded}
|
|
17
|
+
{@const RouteComponent = loaded.default}
|
|
18
|
+
<RouteComponent {...props} />
|
|
19
|
+
{:catch}
|
|
20
|
+
<div class="route-status route-error" role="alert">
|
|
21
|
+
<p>This view couldn’t be loaded.</p>
|
|
22
|
+
<button type="button" onclick={() => window.location.reload()}>Reload application</button>
|
|
23
|
+
</div>
|
|
24
|
+
{/await}
|
|
25
|
+
</div>
|
|
23
26
|
|
|
24
27
|
<style>
|
|
28
|
+
.route-viewport {
|
|
29
|
+
flex: 1 1 auto;
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
min-width: 0;
|
|
35
|
+
min-height: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.route-viewport[data-mode="page"] {
|
|
39
|
+
overflow-y: auto;
|
|
40
|
+
overscroll-behavior-y: contain;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.route-viewport[data-mode="workspace"] {
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.route-viewport > :global(*) {
|
|
48
|
+
flex: 1 1 auto;
|
|
49
|
+
min-width: 0;
|
|
50
|
+
min-height: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
25
53
|
.route-status {
|
|
26
54
|
display: grid;
|
|
27
55
|
place-content: center;
|
|
@@ -40,4 +68,12 @@ let { load, props }: Props = $props();
|
|
|
40
68
|
color: var(--text-primary);
|
|
41
69
|
cursor: pointer;
|
|
42
70
|
}
|
|
71
|
+
|
|
72
|
+
@media (max-width: 960px) {
|
|
73
|
+
.route-viewport[data-mode="page"] {
|
|
74
|
+
height: auto;
|
|
75
|
+
overflow-y: visible;
|
|
76
|
+
overscroll-behavior-y: auto;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
43
79
|
</style>
|