Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): keep agent browser preview visible #9484

Mergedmaria-rcksmerged 2 commits intomain fromrefs/pull/9484/headmerged by maria-rcks View on GitHub

Showing 19 changed files with 22 additions and 3 deletions (loading 16).

x
0 of 19 viewed, 19 left
7 additions and 3 deletionsapps/web/src/browser/BrowserSurfaceSlot.tsxModified
View file
@@ -8,6 +8,7 @@
readonly tabId: string;
readonly visible: boolean;
readonly cornerRadius?: number;
+ readonly zIndex?: number;
readonly layoutVersion?: string | number;
readonly className?: string;
readonly fitSourceContent?: boolean;
@@ -16,12 +17,13 @@
tabId,
visible,
cornerRadius = 0,
+ zIndex = 30,
layoutVersion,
className,
fitSourceContent = false,
} = props;
const elementRef = useRef<HTMLDivElement | null>(null);
- const presentationRef = useRef({ visible, cornerRadius });
+ const presentationRef = useRef({ visible, cornerRadius, zIndex });
const updateRef = useRef<(() => void) | null>(null);
​
useLayoutEffect(() => {
@@ -40,6 +42,7 @@
},
presentation.visible && rect.width > 0 && rect.height > 0,
presentation.cornerRadius,
+ presentation.zIndex,