Skip to content

Commit ea37533

Browse files
authored
chore(databases-navigation): align placeholder with the icon (#3481)
1 parent d9111f1 commit ea37533

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/compass-databases-navigation/src/placeholder-item.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@ const placeholderItem = css({
88
display: 'flex',
99
alignItems: 'center',
1010
height: COLLECTION_ROW_HEIGHT,
11-
paddingLeft: spacing[5],
1211
});
1312

13+
// Padding should align the placeholder with icon at the start of the item, not
14+
// with the text after the icon
1415
const padding = {
1516
database: css({
16-
paddingLeft: spacing[4] + spacing[2],
17+
paddingLeft: spacing[3] + spacing[1],
1718
}),
1819
collection: css({
19-
paddingLeft: spacing[4] + spacing[4] + spacing[1],
20+
paddingLeft: spacing[5] + spacing[1],
2021
}),
2122
} as const;
2223

0 commit comments

Comments
 (0)