Skip to content

Commit 02bfc31

Browse files
committed
reactRouterDevTools
1 parent 335ccd0 commit 02bfc31

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/client/embedded-dev-tools.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ const Embedded = ({ plugins: pluginArray, mainPanelClassName, className }: Embed
2727
const plugins = pluginArray?.map((plugin) => (typeof plugin === "function" ? plugin() : plugin))
2828
if (settings.requireUrlFlag && !url.includes(settings.urlFlag)) return null
2929
return (
30-
<div id={REACT_ROUTER_DEV_TOOLS} className={clsx("react-router-dev-tools react-router-dev-tools-reset", className)}>
30+
<div
31+
id={REACT_ROUTER_DEV_TOOLS}
32+
className={clsx("react-router-dev-tools react-router-dev-tools-reset h-full flex-row w-full", className)}
33+
>
3134
<MainPanel className={mainPanelClassName} isEmbedded isOpen={true}>
3235
<Tabs plugins={plugins} />
3336
<ContentPanel leftSideOriented={leftSideOriented} plugins={plugins} />

src/client/layout/MainPanel.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ const MainPanel = ({ children, isOpen, isEmbedded = false, className }: MainPane
3939
"duration-600 box-border flex w-screen flex-col overflow-auto bg-main text-white opacity-0 transition-all",
4040
isOpen ? "opacity-100 drop-shadow-2xl" : "!h-0",
4141
isResizing && "cursor-grabbing ",
42-
!isEmbedded ? `fixed left-0 ${panelLocation === "bottom" ? "bottom-0" : "top-0 border-b-2 border-main"}` : "",
42+
!isEmbedded
43+
? `fixed left-0 ${panelLocation === "bottom" ? "bottom-0" : "top-0 border-b-2 border-main"}`
44+
: "!w-full !h-full !flex-row",
4345
className
4446
)}
4547
>

0 commit comments

Comments
 (0)