Skip to content

Commit

Permalink
Only scroll the tab content
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Oct 22, 2024
1 parent b4bae4e commit 3186f64
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function Route() {
const selectionErrorCount = selection?.errors.length ?? 0;

return (
<Tabs defaultValue="request">
<Tabs defaultValue="request" className="flex-1 overflow-hidden">
<Tabs.List>
<Tabs.Trigger value="request">Request overview</Tabs.Trigger>
{!!data.request?.body && (
Expand All @@ -41,7 +41,7 @@ export function Route() {
)}
</Tabs.Trigger>
</Tabs.List>
<Tabs.Content value="request" className="py-4">
<Tabs.Content value="request" className="py-4 overflow-auto">
{data.request ? (
<ConnectorsRequestOverview request={data.request} />
) : (
Expand All @@ -50,10 +50,10 @@ export function Route() {
</ConnectorsEmptyState>
)}
</Tabs.Content>
<Tabs.Content value="requestBody" className="py-4">
<Tabs.Content value="requestBody" className="py-4 overflow-auto">
{data.request?.body && <ConnectorsBody body={data.request.body} />}
</Tabs.Content>
<Tabs.Content value="response" className="py-4">
<Tabs.Content value="response" className="py-4 overflow-auto">
{data.response ? (
<ConnectorsResponseOverview response={data.response} />
) : (
Expand All @@ -62,14 +62,14 @@ export function Route() {
</ConnectorsEmptyState>
)}
</Tabs.Content>
<Tabs.Content value="responseBody" className="py-4">
<Tabs.Content value="responseBody" className="py-4 overflow-auto">
{response?.body ? (
<ConnectorsBody body={response.body} />
) : (
<ConnectorsEmptyState>No response body to show</ConnectorsEmptyState>
)}
</Tabs.Content>
<Tabs.Content value="mapping" className="py-4">
<Tabs.Content value="mapping" className="py-4 overflow-auto">
{selection ? (
<ConnectorsResponseMapping selection={selection} />
) : (
Expand Down

0 comments on commit 3186f64

Please sign in to comment.