Skip to content

Commit b59fe5d

Browse files
committed
feat: fix tooltip overflow in log viewers
1 parent e36c50b commit b59fe5d

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

assets/js/collaborative-editor/components/run-viewer/InputTabPanel.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
// differing only in the dataclip field accessed (input_dataclip_id vs output_dataclip_id)
55
// and display text.
66

7-
import { useMemo } from 'react';
7+
import { useMemo } from "react";
88

9-
import { DataclipViewer } from '../../../react/components/DataclipViewer';
10-
import { useCurrentRun, useSelectedStep } from '../../hooks/useRun';
11-
import type { Step } from '../../types/run';
12-
import { isFinalState } from '../../types/run';
13-
import { StepViewerLayout } from './StepViewerLayout';
9+
import { DataclipViewer } from "../../../react/components/DataclipViewer";
10+
import { useCurrentRun, useSelectedStep } from "../../hooks/useRun";
11+
import type { Step } from "../../types/run";
12+
import { isFinalState } from "../../types/run";
13+
import { StepViewerLayout } from "./StepViewerLayout";
1414

1515
interface InputContentProps {
1616
selectedStep: Step | null;
@@ -54,7 +54,7 @@ export function InputTabPanel() {
5454

5555
return (
5656
<StepViewerLayout selectedStepId={selectedStep?.id || null}>
57-
<div className="h-full overflow-auto">
57+
<div className="h-full">
5858
<InputContent selectedStep={selectedStep} runFinished={runFinished} />
5959
</div>
6060
</StepViewerLayout>

assets/js/collaborative-editor/components/run-viewer/LogTabPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export function LogTabPanel() {
125125
</div>
126126

127127
{/* Log viewer */}
128-
<div ref={containerRef} className="flex-1 overflow-hidden" />
128+
<div ref={containerRef} className="flex-1" />
129129
</div>
130130
</StepViewerLayout>
131131
);

assets/js/collaborative-editor/components/run-viewer/OutputTabPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function OutputTabPanel() {
5454

5555
return (
5656
<StepViewerLayout selectedStepId={selectedStep?.id || null}>
57-
<div className="h-full overflow-auto">
57+
<div className="h-full">
5858
<OutputContent selectedStep={selectedStep} runFinished={runFinished} />
5959
</div>
6060
</StepViewerLayout>

assets/js/collaborative-editor/components/run-viewer/StepViewerLayout.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { ReactNode } from 'react';
2-
import { Panel, PanelGroup, PanelResizeHandle } from 'react-resizable-panels';
1+
import type { ReactNode } from "react";
2+
import { Panel, PanelGroup, PanelResizeHandle } from "react-resizable-panels";
33

4-
import { useCurrentRun, useRunStoreInstance } from '../../hooks/useRun';
5-
import { StepList } from './StepList';
4+
import { useCurrentRun, useRunStoreInstance } from "../../hooks/useRun";
5+
import { StepList } from "./StepList";
66

77
interface StepViewerLayoutProps {
88
children: ReactNode;
@@ -44,8 +44,8 @@ export function StepViewerLayout({
4444
<PanelResizeHandle className="h-1 bg-gray-200 hover:bg-blue-400 transition-colors cursor-row-resize" />
4545

4646
{/* Content viewer (logs, input, or output) */}
47-
<Panel minSize={30}>
48-
<div className="h-full overflow-hidden">{children}</div>
47+
<Panel minSize={30} style={{ overflow: "unset" }}>
48+
<div className="h-full">{children}</div>
4949
</Panel>
5050
</PanelGroup>
5151
);

0 commit comments

Comments
 (0)