Skip to content

Commit d505fbb

Browse files
Merge pull request #1143 from topcoder-platform/PM-1321
PM-1321 Fix alignment issues on copilot form
2 parents 7d06d63 + 2b67683 commit d505fbb

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

src/apps/copilots/src/pages/copilot-request-form/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ const CopilotRequestForm: FC<{}> = () => {
331331
customRadius
332332
noCaps
333333
leftAlignText
334+
textWrap
334335
/>
335336
{formErrors.complexity && (
336337
<p className={styles.error}>

src/apps/copilots/src/pages/copilot-request-form/styles.module.scss

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,29 @@ $gradient: linear-gradient(
4242
margin-bottom: 1rem;
4343
}
4444

45+
@media (max-width: 768px) {
46+
.formRadioBtn {
47+
display: grid;
48+
align-items: start;
49+
grid-template-columns: 1fr 1fr;
50+
gap: 1rem;
51+
}
52+
53+
.formRadioBtn > *:nth-child(2),
54+
.formRadioBtn > *:nth-child(3) {
55+
grid-column: 2;
56+
}
57+
58+
.formRadioBtn > *:nth-child(1) {
59+
grid-column: 1;
60+
grid-row: 1 / span 2;
61+
}
62+
63+
.formRadioBtn > *:nth-child(3) {
64+
grid-row: 2;
65+
}
66+
}
67+
4568
.complexity {
4669
display: flex;
4770
flex-direction: column;

0 commit comments

Comments
 (0)