Skip to content

Commit 9b1191e

Browse files
committed
revert(tables): keep preview dividers within grid
1 parent 43c84a3 commit 9b1191e

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ 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')
117115
const subtable = container.querySelector('td table')
118116
expect(subtable?.className).toContain('w-[100cqw]')
119117
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 border-[var(--border)] border-t border-b bg-[var(--surface-2)]'>
125+
<div className='flex h-full w-[100cqw] min-w-0 flex-col 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)