Skip to content

Commit 952f380

Browse files
committed
styling
1 parent a44c559 commit 952f380

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

packages/compass-sidebar/src/components/multiple-connections/header/sidebar-header.tsx

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ const sidebarHeaderTextStyles = css({
2222
fontWeight: 600,
2323
});
2424

25+
const badgeStyles = css({
26+
verticalAlign: 'middle',
27+
marginLeft: spacing[100],
28+
});
29+
2530
type Action = 'open-compass-settings';
2631

2732
const actions: ItemAction<Action>[] = [
@@ -43,12 +48,16 @@ export function SidebarHeader({
4348
<div className={sidebarHeaderStyles} data-testid="sidebar-header">
4449
<Subtitle className={sidebarHeaderTextStyles}>
4550
{isCompassWeb ? 'Data Explorer' : 'Compass'}
51+
{isCompassWeb && (
52+
<Badge
53+
variant={BadgeVariant.Blue}
54+
className={badgeStyles}
55+
data-testid="sidebar-header-badge"
56+
>
57+
Preview
58+
</Badge>
59+
)}
4660
</Subtitle>
47-
{isCompassWeb && (
48-
<Badge variant={BadgeVariant.Blue} data-testid="sidebar-header-badge">
49-
Preview
50-
</Badge>
51-
)}
5261
{!isCompassWeb && (
5362
<ItemActionControls<Action>
5463
onAction={onAction}

0 commit comments

Comments
 (0)