Skip to content

Commit 0e8f87a

Browse files
committed
Pipeline visualizer icon sizing
1 parent 9acb73c commit 0e8f87a

3 files changed

Lines changed: 22 additions & 16 deletions

File tree

frontend/src/components/debug-helper/debug-dialog.tsx

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -690,21 +690,16 @@ export function DebugDialog({ open, onOpenChange }: { open: boolean; onOpenChang
690690
</DialogBody>
691691

692692
<DialogFooter direction="row" justify="between">
693-
<div className="flex items-center gap-3">
693+
<span className="flex items-center gap-2">
694694
<Text className="text-muted-foreground" variant="small">
695-
Dev-only · {IsDev ? 'enabled' : 'disabled'}
695+
toggle
696696
</Text>
697-
<span className="flex items-center gap-2">
698-
<Text className="text-muted-foreground" variant="small">
699-
toggle
700-
</Text>
701-
<KbdGroup>
702-
<Kbd size="xs">⌃/⌘</Kbd>
703-
<Kbd size="xs"></Kbd>
704-
<Kbd size="xs">D</Kbd>
705-
</KbdGroup>
706-
</span>
707-
</div>
697+
<KbdGroup>
698+
<Kbd size="xs">⌃/⌘</Kbd>
699+
<Kbd size="xs"></Kbd>
700+
<Kbd size="xs">D</Kbd>
701+
</KbdGroup>
702+
</span>
708703
<Button onClick={close} size="sm" variant="secondary-ghost">
709704
Close
710705
</Button>

frontend/src/components/pages/rp-connect/onboarding/connector-logo.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { type ComponentName, componentLogoMap } from 'assets/connectors/component-logo-map';
2+
import { cn } from 'components/redpanda-ui/lib/utils';
23

34
export const ConnectorLogo = ({
45
name,
@@ -10,5 +11,16 @@ export const ConnectorLogo = ({
1011
style?: React.CSSProperties;
1112
}) => {
1213
const Component = componentLogoMap[name];
13-
return Component ? <Component className={className} style={style} /> : null;
14+
if (!Component) {
15+
return null;
16+
}
17+
// Wrap in a sized container so taller-than-wide logos (e.g. MongoDB's leaf,
18+
// viewBox 256×549) can't blow out the row height. The inner SVG fills the
19+
// wrapper and `preserveAspectRatio="xMidYMid meet"` (SVG default) letterboxes
20+
// the content to keep each logo's natural aspect ratio.
21+
return (
22+
<span className={cn('inline-flex shrink-0 items-center justify-center', className)} style={style}>
23+
<Component className="block h-full max-h-full w-full max-w-full" />
24+
</span>
25+
);
1426
};

frontend/src/components/pages/rp-connect/pipeline/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ export default function PipelinePage() {
10641064
creating a new user.
10651065
</DialogDescription>
10661066
</DialogHeader>
1067-
<DialogBody>
1067+
<DialogBody padding="none">
10681068
{connectorTopics && connectorTopics.length > 1 && (
10691069
<Alert variant="warning">
10701070
<AlertTitle>Multiple topics configured</AlertTitle>
@@ -1075,7 +1075,6 @@ export default function PipelinePage() {
10751075
</Alert>
10761076
)}
10771077
<AddUserStep
1078-
className="border"
10791078
hideTitle
10801079
ref={userStepRef}
10811080
showConsumerGroupFields={userDialog.target?.section === 'input'}

0 commit comments

Comments
 (0)