Skip to content

Commit 43214f9

Browse files
authored
Merge pull request #86 from modelcontextprotocol/fix-widget-layout
Fix widget layout to use full available width
2 parents 8f4a0c7 + 8ef9142 commit 43214f9

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

examples/basic-host/src/index.module.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,8 @@
113113
min-height: 200px;
114114

115115
iframe {
116-
flex-shrink: 0;
117-
height: 100%;
118-
max-width: 100%;
116+
flex: 1 0 auto;
117+
height: 600px;
119118
box-sizing: border-box;
120119
border: 3px dashed #888;
121120
border-radius: 4px;

examples/budget-allocator-server/src/mcp-app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ body {
4040
display: flex;
4141
flex-direction: column;
4242
height: 600px;
43-
width: 600px;
43+
width: 100%;
4444
max-width: 100%;
4545
max-height: 100%;
4646
overflow: hidden;

examples/customer-segmentation-server/src/mcp-app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ html, body {
3737
}
3838

3939
.main {
40-
width: 600px;
40+
width: 100%;
4141
height: 600px;
4242
margin: 0 auto;
4343
padding: 12px;

examples/scenario-modeler-server/src/mcp-app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
============================================================================ */
3838

3939
.main {
40-
width: 600px;
40+
width: 100%;
4141
height: 600px;
4242
overflow: hidden;
4343
background: var(--bg-primary);

examples/system-monitor-server/src/mcp-app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ html, body {
3636
}
3737

3838
.main {
39-
width: 600px;
39+
width: 100%;
4040
margin: 0 auto;
4141
padding: 16px;
4242
display: flex;

0 commit comments

Comments
 (0)