Skip to content

Commit f39f838

Browse files
authored
chore: fix transaction json scrolling (#10)
1 parent 2b05de2 commit f39f838

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/features/layout/pages/layout-page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function LayoutPage({ children }: LayoutPageProps) {
1414
return (
1515
<>
1616
<Header className={cn('mb-1')} />
17-
<div className={cn('flex h-full flex-shrink flex-row')}>
17+
<div className={cn('flex h-full flex-row')}>
1818
<LeftSideBarMenu />
1919
<div className={cn('pl-4 pt-4')}> {children}</div>
2020
</div>

src/features/transactions/components/transaction-json.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export function TransactionJson({ transaction }: Props) {
99
return (
1010
<div className={cn('space-y-2')}>
1111
<h2 className={cn('text-xl font-bold')}>Transction JSON</h2>
12-
<div className={cn('border-solid border-2 border-border h-96 p-4 overflow-y-scroll')}>
13-
<pre>{JSON.stringify(transaction, null, 4)}</pre>
12+
<div className={cn('border-solid border-2 border-border h-96 grid')}>
13+
<pre className={cn('overflow-scroll p-4')}>{JSON.stringify(transaction, null, 4)}</pre>
1414
</div>
1515
</div>
1616
)

0 commit comments

Comments
 (0)