Skip to content

Commit 08c0283

Browse files
committed
table item alignment
1 parent e8ff1f4 commit 08c0283

File tree

2 files changed

+21
-12
lines changed

2 files changed

+21
-12
lines changed

airbyte-webapp/src/components/connection/CatalogTree/next/CatalogTreeTableRow.module.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
background: colors.$white;
1919
border-bottom: 1px solid colors.$grey-50;
2020
padding: variables.$spacing-sm variables.$spacing-md variables.$spacing-sm variables.$spacing-sm;
21-
gap: variables.$spacing-lg;
21+
gap: variables.$spacing-sm;
22+
display: flex;
23+
flex-direction: row;
24+
align-items: space-between;
25+
width: 100%;
2226

2327
&:hover {
2428
background: colors.$grey-30;
@@ -50,3 +54,8 @@
5054
font-size: 10px;
5155
line-height: 13px;
5256
}
57+
58+
.streamRowItem {
59+
min-width: 0;
60+
padding-left: variables.$spacing-xs;
61+
}

airbyte-webapp/src/components/connection/CatalogTree/next/CatalogTreeTableRow.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,18 @@ export const CatalogTreeTableRow: React.FC<StreamHeaderProps> = ({
8383
<CheckBox checked={isSelected} onChange={selectForBulkEdit} />
8484
</div>
8585
)}
86-
<Cell flex={0.4}>
86+
<Cell flex={0.4} className={styles.streamRowItem}>
8787
<Switch small checked={stream.config?.selected} onChange={onSelectStream} disabled={disabled} />
8888
</Cell>
8989
{/* <Cell>{fieldCount}</Cell> */}
90-
<HeaderCell ellipsis title={stream.stream?.namespace || ""}>
90+
<HeaderCell ellipsis title={stream.stream?.namespace || ""} className={styles.streamRowItem}>
9191
{stream.stream?.namespace || <FormattedMessage id="form.noNamespace" />}
9292
</HeaderCell>
93-
<HeaderCell ellipsis title={stream.stream?.name || ""}>
93+
<HeaderCell ellipsis title={stream.stream?.name || ""} className={styles.streamRowItem}>
9494
{stream.stream?.name}
9595
</HeaderCell>
9696
{/* todo: this is weird, we have a cell nested inside a cell */}
97-
<Cell>
97+
<Cell className={styles.streamRowItem}>
9898
{disabled ? (
9999
<HeaderCell ellipsis title={syncSchema.syncMode}>
100100
{syncSchema.syncMode}
@@ -103,7 +103,7 @@ export const CatalogTreeTableRow: React.FC<StreamHeaderProps> = ({
103103
<SyncModeSelect options={availableSyncModes} onChange={onSelectSyncMode} value={syncSchema} />
104104
)}
105105
</Cell>
106-
<HeaderCell>
106+
<HeaderCell className={styles.streamRowItem}>
107107
{cursorType && (
108108
<StreamPathSelect
109109
pathType={cursorType}
@@ -113,7 +113,7 @@ export const CatalogTreeTableRow: React.FC<StreamHeaderProps> = ({
113113
/>
114114
)}
115115
</HeaderCell>
116-
<HeaderCell ellipsis>
116+
<HeaderCell ellipsis className={styles.streamRowItem}>
117117
{pkType && (
118118
<StreamPathSelect
119119
pathType={pkType}
@@ -124,23 +124,23 @@ export const CatalogTreeTableRow: React.FC<StreamHeaderProps> = ({
124124
/>
125125
)}
126126
</HeaderCell>
127-
<Cell>
127+
<Cell className={styles.streamRowItem}>
128128
<FontAwesomeIcon icon={faArrowRight} />
129129
</Cell>
130-
<HeaderCell ellipsis title={destNamespace}>
130+
<HeaderCell ellipsis title={destNamespace} className={styles.streamRowItem}>
131131
{destNamespace}
132132
</HeaderCell>
133-
<HeaderCell ellipsis title={destName}>
133+
<HeaderCell ellipsis title={destName} className={styles.streamRowItem}>
134134
{destName}
135135
</HeaderCell>
136-
<Cell>
136+
<Cell className={styles.streamRowItem}>
137137
{disabled ? (
138138
<HeaderCell ellipsis title={syncSchema.destinationSyncMode}>
139139
{syncSchema.destinationSyncMode}
140140
</HeaderCell>
141141
) : (
142142
// TODO: Replace with Dropdown/Popout
143-
<HeaderCell ellipsis title={syncSchema.destinationSyncMode}>
143+
<HeaderCell ellipsis title={syncSchema.destinationSyncMode} className={styles.streamRowItem}>
144144
{syncSchema.destinationSyncMode}
145145
</HeaderCell>
146146
)}

0 commit comments

Comments
 (0)