Skip to content

Commit 3f96dac

Browse files
style: improve workspace header alignment (#8)
Co-authored-by: Andreas Kienle <[email protected]>
1 parent 3a00e95 commit 3f96dac

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/components/ControlPlanes/ControlPlaneCard.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ export function ControlPlaneCard({
5252

5353
return (
5454
<>
55-
<Card key={`${name}--${namespace}`}>
55+
<Card
56+
key={`${name}--${namespace}`}
57+
style={{ margin: '12px 12px 12px 0' }}
58+
>
5659
<div style={{ padding: '20px' }}>
5760
<FlexBox direction="Column">
5861
<FlexBox direction="Row" justifyContent="SpaceBetween">

src/components/ControlPlanes/List/ControlPlaneListWorkspaceGridTile.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,14 @@ export function ControlPlaneListWorkspaceGridTile({
9595
>
9696
<Panel
9797
headerLevel="H2"
98+
style={{ margin: '12px 12px 12px 0' }}
9899
collapsed={controlplanes?.length === 0}
99100
header={
100101
<div
101102
style={{
102103
width: '100%',
103104
display: 'grid',
104-
gridTemplateColumns: '1fr 1fr 1fr auto',
105+
gridTemplateColumns: '0.3fr 0.24fr auto 0.05fr',
105106
gap: '1rem',
106107
alignItems: 'center',
107108
}}

src/components/ControlPlanes/List/MembersAvatarView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ export function MembersAvatarView({ members, project, workspace }: Props) {
3131
}
3232

3333
return (
34-
<div style={{ maxWidth: '300px' }}>
34+
<div style={{ display: 'flex', justifyContent: 'flex-end' }}>
3535
<AvatarGroup
3636
ref={openerRef}
37+
style={{ maxWidth: '200px' }}
3738
type={AvatarGroupType.Group}
3839
onClick={handleOnClick}
3940
>

0 commit comments

Comments
 (0)