Skip to content

Commit d90cbc8

Browse files
committed
Fix CSS issues
1 parent 8fb6ba6 commit d90cbc8

File tree

2 files changed

+35
-7
lines changed

2 files changed

+35
-7
lines changed

src/pages/quick-start/index.tsx

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,9 @@ export default function IntegrationBuilderPage(props: any) {
249249
case "product_selection":
250250
return (
251251
<div key={key} className={styles.list}>
252-
<h3>{option.displayName}</h3>
253252
<div className={styles.cardContainer}>
254253
{option.choices.map((value) => (
255-
<>
254+
<React.Fragment key={value.key}>
256255
{value.key === METAMASK_SDK && (
257256
<div
258257
className={builderOptions[key] === METAMASK_SDK ? styles.selectedCard : styles.card}
@@ -285,7 +284,7 @@ export default function IntegrationBuilderPage(props: any) {
285284
</h5>
286285
</div>
287286
)}
288-
</>
287+
</React.Fragment>
289288
))}
290289
</div>
291290
</div>
@@ -368,8 +367,18 @@ export default function IntegrationBuilderPage(props: any) {
368367
)}
369368
<div className={styles.optionsPane}>
370369
<div className={styles.optionsContainer}>
371-
<div className={styles.utilityButtonsContainer}>
372-
{Object.entries(builder.options).map(([key, option]) => optionRender(key, option))}
370+
{/* Product Selection Row */}
371+
<div className={styles.productSelectionRow}>
372+
{Object.entries(builder.options).map(([key, option]) =>
373+
option.type === 'product_selection' ? optionRender(key, option) : null
374+
)}
375+
</div>
376+
377+
{/* Controls Row */}
378+
<div className={styles.controlsRow}>
379+
{Object.entries(builder.options).map(([key, option]) =>
380+
option.type === 'dropdown' ? optionRender(key, option) : null
381+
)}
373382

374383
<button
375384
className={styles.copyButton2}

src/pages/quick-start/styles.module.css

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
display: flex;
9898
flex-direction: column;
9999
justify-content: flex-start;
100-
align-items: flex-start;
100+
align-items: flex-end;
101101
flex-wrap: wrap;
102102
}
103103

@@ -115,6 +115,25 @@
115115
justify-content: flex-start;
116116
align-items: center;
117117
gap: 8px;
118+
flex-wrap: wrap;
119+
}
120+
121+
.productSelectionRow {
122+
display: flex;
123+
flex-direction: row;
124+
justify-content: flex-end;
125+
align-items: center;
126+
width: 100%;
127+
margin-bottom: 12px;
128+
}
129+
130+
.controlsRow {
131+
display: flex;
132+
flex-direction: row;
133+
justify-content: flex-end;
134+
align-items: center;
135+
gap: 8px;
136+
flex-wrap: wrap;
118137
}
119138

120139
.cols {
@@ -285,7 +304,7 @@ input:checked+.slider:before {
285304

286305
.cardContainer {
287306
display: flex;
288-
flex-direction: column;
307+
flex-direction: row;
289308
gap: 8px;
290309
}
291310

0 commit comments

Comments
 (0)