@stoker-platform/web-app 0.5.212 → 0.5.213
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 +6 -0
- package/package.json +1 -1
- package/src/Collection.tsx +3 -0
- package/src/utils/runViewTransition.ts +6 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/Collection.tsx
CHANGED
|
@@ -2051,6 +2051,9 @@ function Collection({
|
|
|
2051
2051
|
relationList ? "xl:flex-row" : "lg:flex-row",
|
|
2052
2052
|
)}
|
|
2053
2053
|
>
|
|
2054
|
+
{!isInitialized && !relationList && (
|
|
2055
|
+
<div className="hidden lg:block h-9 shrink-0" aria-hidden="true" />
|
|
2056
|
+
)}
|
|
2054
2057
|
{isInitialized && (
|
|
2055
2058
|
<>
|
|
2056
2059
|
{formList && (
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { flushSync } from "react-dom"
|
|
2
2
|
|
|
3
|
+
const isWebKit =
|
|
4
|
+
typeof navigator !== "undefined" &&
|
|
5
|
+
/AppleWebKit/.test(navigator.userAgent) &&
|
|
6
|
+
!/Chrom(e|ium)|Edg|OPR|Android/.test(navigator.userAgent)
|
|
7
|
+
|
|
3
8
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4
9
|
export const runViewTransition = (callback: () => any) => {
|
|
5
|
-
if (document.startViewTransition && document.visibilityState === "visible") {
|
|
10
|
+
if (!isWebKit && document.startViewTransition && document.visibilityState === "visible") {
|
|
6
11
|
try {
|
|
7
12
|
const transition = document.startViewTransition(() => {
|
|
8
13
|
flushSync(() => {
|