Skip to content

Commit b8d792e

Browse files
committed
fix
1 parent 162ad21 commit b8d792e

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

src/spaces/mcp/pages/McpPage.module.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,14 @@
33
margin: 0.1em auto -8px auto;
44
width: 100%;
55
}
6+
7+
.actionsBar {
8+
display: flex;
9+
flex-direction: row;
10+
justify-content: space-between;
11+
gap: 0.5rem;
12+
}
13+
14+
.panelHeader {
15+
width: 100%;
16+
}

src/spaces/mcp/pages/McpPage.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,7 @@ export default function McpPage() {
9595
breadcrumbs={<BreadCrumbFeedbackHeader />}
9696
//TODO: actionBar should use Toolbar and ToolbarButton for consistent design
9797
actionsBar={
98-
<div
99-
style={{
100-
display: 'flex',
101-
flexDirection: 'row',
102-
justifyContent: 'space-between',
103-
gap: '0.5rem',
104-
}}
105-
>
98+
<div className={styles.actionsBar}>
10699
<MCPHealthPopoverButton
107100
mcpStatus={mcp?.status}
108101
projectName={projectName}
@@ -158,7 +151,7 @@ export default function McpPage() {
158151
headerLevel="H2"
159152
headerText="Panel"
160153
header={
161-
<FlexBox justifyContent={'SpaceBetween'} alignItems={'Center'} style={{ width: '100%' }}>
154+
<FlexBox justifyContent={'SpaceBetween'} alignItems={'Center'} className={styles.panelHeader}>
162155
<Title level="H3">{t('McpPage.componentsTitle')}</Title>{' '}
163156
<Button tooltip={t('editMCP.editComponents')} icon={'edit'} onClick={onEditComponents} />
164157
</FlexBox>

0 commit comments

Comments
 (0)