Skip to content

Commit 4dcad6d

Browse files
authored
fix(TabBar): add another resize host selector
1 parent ca83977 commit 4dcad6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/TabBar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const TopBarContent = (props: {
7171
activeLink: string;
7272
switchCallback: (option: Option) => void;
7373
}) => {
74-
const resizeHost = document.querySelector(".Root__main-view .os-resize-observer-host");
74+
const resizeHost = document.querySelector(".Root__main-view .os-resize-observer-host") ?? document.querySelector(".Root__main-view .os-size-observer");
7575
if (!resizeHost) return null;
7676

7777
const [windowSize, setWindowSize] = useState(resizeHost.clientWidth);

0 commit comments

Comments
 (0)