Skip to content

Commit a65eee5

Browse files
committed
fix embedded mode styling
1 parent 335ccd0 commit a65eee5

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
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", className)}
33+
>
3134
<MainPanel className={mainPanelClassName} isEmbedded isOpen={true}>
3235
<Tabs plugins={plugins} />
3336
<ContentPanel leftSideOriented={leftSideOriented} plugins={plugins} />

src/client/layout/ContentPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const ContentPanel = ({ plugins }: ContentPanelProps) => {
2828
{!hideTimeline && (
2929
<Fragment>
3030
<div className="w-1 bg-gray-500/20" />
31-
<div className={clsx("z-10 hidden lg:block h-full w-1/3 p-2")}>
31+
<div className={clsx("z-10 hidden lg:block h-full w-1/3 p-2 overflow-y-auto")}>
3232
<TimelineTab />
3333
</div>
3434
</Fragment>

src/client/layout/MainPanel.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ 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
>
46-
{panelLocation === "bottom" && (
48+
{panelLocation === "bottom" && !isEmbedded && (
4749
<div
4850
onMouseDown={enableResize}
4951
onMouseUp={disableResize}

0 commit comments

Comments
 (0)