@orsetra/shared-ui 1.11.1 → 1.11.3
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.
|
@@ -5,6 +5,7 @@ import { useEnvironmentContext } from "../../context/environment-context"
|
|
|
5
5
|
import { environmentGateView, environmentLabel } from "../../lib/environment-context"
|
|
6
6
|
import { AlertBanner } from "../ui/alert-banner"
|
|
7
7
|
import { EnvironmentRequired } from "../ui/environment-required"
|
|
8
|
+
import { Spinner } from "../ui/spinner"
|
|
8
9
|
|
|
9
10
|
export interface EnvironmentGateProps {
|
|
10
11
|
children: ReactNode
|
|
@@ -18,10 +19,8 @@ export function EnvironmentGate({ children, required = true, createHref }: Envir
|
|
|
18
19
|
|
|
19
20
|
if (view === "waiting") {
|
|
20
21
|
return (
|
|
21
|
-
<div className="
|
|
22
|
-
<
|
|
23
|
-
<div className="h-24 bg-white border border-ui-border animate-pulse" />
|
|
24
|
-
<div className="h-24 bg-white border border-ui-border animate-pulse" />
|
|
22
|
+
<div className="flex items-center justify-center h-full min-h-[320px]" aria-busy="true">
|
|
23
|
+
<Spinner size="lg" label="Loading environments" />
|
|
25
24
|
</div>
|
|
26
25
|
)
|
|
27
26
|
}
|
|
@@ -139,7 +139,7 @@ function LayoutContent({
|
|
|
139
139
|
<Menu className="h-5 w-5" />
|
|
140
140
|
</Button>
|
|
141
141
|
</div>
|
|
142
|
-
<div className="flex-1 min-w-0 flex items-center justify-between gap-3
|
|
142
|
+
<div className="flex-1 min-w-0 flex items-center justify-between gap-3 pr-4 md:pr-6">
|
|
143
143
|
<div className="min-w-0 flex items-center">
|
|
144
144
|
<EnvironmentSwitcher createHref={createEnvironmentHref} />
|
|
145
145
|
</div>
|