Skip to content

Commit 55babcb

Browse files
committed
chore: style
1 parent 0c93367 commit 55babcb

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

src/features/transactions/pages/group-page.tsx

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,30 @@ function TransactionRow({
5757
// The connection between this transaction and the parent
5858
hasParent && (
5959
<div
60-
className={cn('w-8', `border-primary rounded-bl-lg`, `h-1/2`, `absolute top-0 left-0`)}
61-
style={{ borderLeftWidth: `${graphConfig.lineWidth}px`, borderBottomWidth: `${graphConfig.lineWidth}px` }}
60+
className={cn(`border-primary rounded-bl-lg`, `h-1/2`, `absolute top-0 left-0`)}
61+
style={{
62+
borderLeftWidth: `${graphConfig.lineWidth}px`,
63+
borderBottomWidth: `${graphConfig.lineWidth}px`,
64+
width: `${graphConfig.indentationWidth + 8}px`,
65+
}}
6266
></div>
6367
)
6468
}
65-
<div className={cn('inline ml-8')}>{transaction.name}</div>
69+
<div
70+
className={cn('inline')}
71+
style={{
72+
marginLeft: `${graphConfig.indentationWidth + 8}px`,
73+
}}
74+
>
75+
{transaction.name}
76+
</div>
6677
{
6778
// The connection between this transaction and the next sibbling
6879
hasParent && hasNextSibbling && (
6980
<div
70-
className={cn('w-8', 'border-primary', 'absolute top-[18px] left-0')}
81+
className={cn('border-primary', 'absolute left-0')}
7182
style={{
83+
width: `${graphConfig.indentationWidth + 8}px`,
7284
borderLeftWidth: `${graphConfig.lineWidth}px`,
7385
height: `calc(50% + ${graphConfig.lineWidth}px)`,
7486
top: `calc(50% - ${graphConfig.lineWidth}px)`,
@@ -307,7 +319,7 @@ function calcTransactionArrow(transaction: Transaction, accounts: string[]): Tra
307319
const graphConfig = {
308320
rowHeight: 40,
309321
colWidth: 128,
310-
indentationWidth: 24,
322+
indentationWidth: 32,
311323
lineWidth: 2,
312324
circleDimension: 20,
313325
}

0 commit comments

Comments
 (0)