Skip to content

Commit b36744e

Browse files
committed
fix responsive in environment selector
1 parent f401318 commit b36744e

1 file changed

Lines changed: 47 additions & 12 deletions

File tree

client/src/features/sessionsV2/components/SessionForm/EnvironmentKindField.tsx

Lines changed: 47 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export default function EnvironmentKindField({
5555
className={cx(
5656
"btn",
5757
"btn-outline-primary",
58-
"p-4",
58+
"p-2",
59+
"p-md-4",
5960
"d-flex",
6061
"justify-content-center"
6162
)}
@@ -65,12 +66,22 @@ export default function EnvironmentKindField({
6566
>
6667
<div className={cx("d-flex", "flex-column", "gap-2")}>
6768
<div
68-
className={cx("d-flex", "flex-row", "gap-3", "text-start")}
69+
className={cx(
70+
"d-flex",
71+
"flex-row",
72+
"gap-3",
73+
"text-center",
74+
"text-md-start"
75+
)}
6976
>
70-
<EnvironmentIcon type="global" size={30} />
77+
<EnvironmentIcon
78+
type="global"
79+
size={30}
80+
className={cx("d-none", "d-md-block")}
81+
/>
7182
<span className="fw-bold">Global environment</span>
7283
</div>
73-
<p className={cx("mb-0", "text-start")}>
84+
<p className={cx("mb-0", "text-start", "d-none", "d-md-block")}>
7485
Get started quickly with a pre-built environment.
7586
</p>
7687
</div>
@@ -92,7 +103,8 @@ export default function EnvironmentKindField({
92103
className={cx(
93104
"btn",
94105
"btn-outline-primary",
95-
"p-4",
106+
"p-2",
107+
"p-md-4",
96108
"d-flex",
97109
"justify-content-center"
98110
)}
@@ -105,13 +117,25 @@ export default function EnvironmentKindField({
105117
"d-flex",
106118
"flex-row",
107119
"gap-3",
108-
"text-start"
120+
"text-center",
121+
"text-md-start"
109122
)}
110123
>
111-
<EnvironmentIcon type="codeBased" size={30} />
124+
<EnvironmentIcon
125+
type="codeBased"
126+
size={30}
127+
className={cx("d-none", "d-md-block")}
128+
/>
112129
<span className="fw-bold">Create from code</span>
113130
</div>
114-
<p className={cx("mb-0", "text-start")}>
131+
<p
132+
className={cx(
133+
"mb-0",
134+
"text-start",
135+
"d-none",
136+
"d-md-block"
137+
)}
138+
>
115139
Customize your session with a requirements.txt or similar
116140
file.
117141
</p>
@@ -134,7 +158,8 @@ export default function EnvironmentKindField({
134158
className={cx(
135159
"btn",
136160
"btn-outline-primary",
137-
"p-4",
161+
"p-2",
162+
"p-md-4",
138163
"d-flex",
139164
"justify-content-center"
140165
)}
@@ -144,12 +169,22 @@ export default function EnvironmentKindField({
144169
>
145170
<div className={cx("d-flex", "flex-column", "gap-2")}>
146171
<div
147-
className={cx("d-flex", "flex-row", "gap-3", "text-start")}
172+
className={cx(
173+
"d-flex",
174+
"flex-row",
175+
"gap-3",
176+
"text-center",
177+
"text-md-start"
178+
)}
148179
>
149-
<EnvironmentIcon type="custom" size={30} />
180+
<EnvironmentIcon
181+
type="custom"
182+
size={30}
183+
className={cx("d-none", "d-md-block")}
184+
/>
150185
<span className="fw-bold">External environment</span>
151186
</div>
152-
<p className={cx("mb-0", "text-start")}>
187+
<p className={cx("mb-0", "text-start", "d-none", "d-md-block")}>
153188
Run a session from a preexisting docker image.
154189
</p>
155190
</div>

0 commit comments

Comments
 (0)