@@ -80,8 +80,9 @@ function TransactionRow({
8080 // The connection between this transaction and the children
8181 hasChildren && (
8282 < div
83- className = { cn ( 'w-2 ml-4 ' , 'border-primary rounded-tl-lg' , 'absolute left-0' ) }
83+ className = { cn ( 'w-2' , 'border-primary rounded-tl-lg' , 'absolute left-0' ) }
8484 style = { {
85+ marginLeft : `${ graphConfig . indentationWidth } px` ,
8586 borderLeftWidth : `${ graphConfig . lineWidth } px` ,
8687 borderTopWidth : `${ graphConfig . lineWidth } px` ,
8788 height : `calc(50% + ${ graphConfig . lineWidth } px)` ,
@@ -113,7 +114,7 @@ function TransactionRow({
113114 className = "relative text-primary"
114115 >
115116 { transactionArrow . direction === 'rightToLeft' && < SvgPointerLeft className = { cn ( 'absolute top-0 left-0' ) } /> }
116- < div className = { cn ( 'border-primary border-b-2 h-1/2' ) } > </ div >
117+ < div className = { cn ( 'border-primary h-1/2' ) } style = { { borderBottomWidth : graphConfig . lineWidth } } > </ div >
117118 { transactionArrow . direction === 'leftToRight' && < SvgPointerRight className = { cn ( 'absolute top-0 right-0' ) } /> }
118119 </ div >
119120 < SvgCircle width = { graphConfig . circleDimension } height = { graphConfig . circleDimension } > </ SvgCircle >
@@ -201,7 +202,7 @@ export function GroupPage() {
201202
202203 return (
203204 < div
204- className = { cn ( 'relative grid' ) }
205+ className = { cn ( 'relative grid overflow-x-scroll max-w-full ' ) }
205206 style = { {
206207 gridTemplateColumns : `minmax(${ graphConfig . colWidth } px, 1fr) repeat(${ accounts . length } , ${ graphConfig . colWidth } px)` ,
207208 gridTemplateRows : `repeat(${ transactionCount + 1 } , ${ graphConfig . rowHeight } px)` ,
@@ -210,7 +211,7 @@ export function GroupPage() {
210211 < div > { /* The first header cell is empty */ } </ div >
211212 { accounts . map ( ( account , index ) => (
212213 < div className = { cn ( 'p-2 flex justify-center' ) } key = { index } >
213- { account }
214+ < h1 className = { cn ( 'text-l font-semibold' ) } > { account } </ h1 >
214215 </ div >
215216 ) ) }
216217 { /* The below div is for drawing the background dash lines */ }
@@ -306,7 +307,7 @@ function calcTransactionArrow(transaction: Transaction, accounts: string[]): Tra
306307const graphConfig = {
307308 rowHeight : 40 ,
308309 colWidth : 128 ,
309- indentationWidth : 16 ,
310+ indentationWidth : 24 ,
310311 lineWidth : 2 ,
311312 circleDimension : 20 ,
312313}
0 commit comments