Skip to content

Commit 43c84a3

Browse files
committed
fix(tables): extend reference preview dividers
1 parent 6e2040a commit 43c84a3

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/reference-row-preview.test.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ describe('ReferenceRowPreview', () => {
112112
expect(container.querySelector('td > div')?.className).toContain(
113113
`h-[${REFERENCE_ROW_PREVIEW_HEIGHT}px]`
114114
)
115+
expect(container.querySelector('td > div > div')?.className).toContain('border-t')
116+
expect(container.querySelector('td > div > div')?.className).toContain('border-b')
115117
const subtable = container.querySelector('td table')
116118
expect(subtable?.className).toContain('w-[100cqw]')
117119
expect(subtable?.className).toContain('border-t')

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/reference-row-preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export const ReferenceRowPreview = memo(function ReferenceRowPreview({
122122
<tr>
123123
<td colSpan={colSpan} className='border-[var(--border)] border-b bg-[var(--surface-2)] p-0'>
124124
<div className='sticky left-0 h-[184px] w-0'>
125-
<div className='flex h-full w-[100cqw] min-w-0 flex-col bg-[var(--surface-2)]'>
125+
<div className='flex h-full w-[100cqw] min-w-0 flex-col border-[var(--border)] border-t border-b bg-[var(--surface-2)]'>
126126
<div className='flex h-9 shrink-0 items-center gap-1.5 px-3 text-[var(--text-primary)] text-small'>
127127
<ReferenceIcon className='size-[14px] text-[var(--text-icon)]' />
128128
<span className='font-medium'>{table?.name ?? 'Referenced table'}</span>

0 commit comments

Comments
 (0)