@stoker-platform/web-app 0.5.128 → 0.5.134
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/CHANGELOG.md +36 -0
- package/index.html +1 -0
- package/package.json +1 -1
- package/src/Collection.tsx +590 -550
- package/src/Tenant.tsx +2 -2
- package/src/main.tsx +5 -2
package/src/Tenant.tsx
CHANGED
|
@@ -582,7 +582,7 @@ function Tenant() {
|
|
|
582
582
|
</DialogContent>
|
|
583
583
|
</Dialog>
|
|
584
584
|
|
|
585
|
-
<header className="sticky top-0 z-50 flex h-
|
|
585
|
+
<header className="sticky top-0 z-50 flex h-[calc(4rem+env(safe-area-inset-top))] items-center gap-4 border-b border-[rgb(39,39,42)] bg-black px-4 pt-[env(safe-area-inset-top)] lg:px-6 print:hidden select-none">
|
|
586
586
|
<nav className="hidden h-full flex-col gap-6 text-lg font-medium lg:flex lg:flex-row lg:items-center lg:text-sm lg:gap-6 dark">
|
|
587
587
|
<button
|
|
588
588
|
className="flex h-full items-center gap-2"
|
|
@@ -663,7 +663,7 @@ function Tenant() {
|
|
|
663
663
|
<span className="sr-only">Toggle Menu</span>
|
|
664
664
|
</Button>
|
|
665
665
|
</SheetTrigger>
|
|
666
|
-
<SheetContent side="
|
|
666
|
+
<SheetContent side="right" className="sm:max-w-xs overflow-y-auto">
|
|
667
667
|
<nav className="grid text-lg font-medium pt-9">
|
|
668
668
|
{hasDashboard && (
|
|
669
669
|
<button
|
package/src/main.tsx
CHANGED
|
@@ -92,7 +92,10 @@ function Main() {
|
|
|
92
92
|
useEffect(() => {
|
|
93
93
|
const root = document.documentElement
|
|
94
94
|
if (mode === "app" && !maintenance) {
|
|
95
|
-
|
|
95
|
+
// Prevent black screen flash due to black background
|
|
96
|
+
setTimeout(() => {
|
|
97
|
+
root.dataset.mode = "app"
|
|
98
|
+
}, 500)
|
|
96
99
|
} else {
|
|
97
100
|
delete root.dataset.mode
|
|
98
101
|
}
|
|
@@ -103,7 +106,7 @@ function Main() {
|
|
|
103
106
|
const getRoutes = () => {
|
|
104
107
|
const routes = loadRoutes()
|
|
105
108
|
setRoutes(routes)
|
|
106
|
-
|
|
109
|
+
setMode("app")
|
|
107
110
|
}
|
|
108
111
|
|
|
109
112
|
const initialize = async () => {
|