Skip to content

Commit ca384dc

Browse files
Styling updates
1 parent 5133629 commit ca384dc

3 files changed

Lines changed: 30 additions & 7 deletions

File tree

frontend/src/app/annotate/annotation-input/annotation-input.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ <h2 i18n>Parser input</h2>
1111
@if (problemDetails(); as details) {
1212
<la-problem-details [problemDetails]="details" />
1313
}
14-
<div class="d-flex flex-row gap-5">
15-
<la-premises-form class="w-50" [form]="inputForm" />
16-
<la-knowledge-base-form class="w-50" [form]="inputForm" />
14+
<div class="input-form-container">
15+
<la-premises-form class="subform" [form]="inputForm" />
16+
<la-knowledge-base-form class="subform" [form]="inputForm" />
1717
</div>
1818
</div>
1919
<div class="mb-3 d-flex justify-content-center">
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.input-form-container {
2+
display: flex;
3+
flex-direction: row;
4+
gap: 20px;
5+
margin-top: 20px;
6+
7+
.subform {
8+
width: 50%;
9+
}
10+
}
11+
12+
@media screen and (max-width: 1200px) {
13+
.input-form-container {
14+
flex-direction: column;
15+
align-items: stretch;
16+
17+
.subform {
18+
width: 100%;
19+
}
20+
}
21+
}

frontend/src/app/annotate/annotation-input/problem-details/problem-details.component.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@
1616
<td class="text-muted" i18n>Dataset:</td>
1717
<td>{{ problemDetails().dataset }}</td>
1818
</tr>
19-
<tr>
20-
<td class="text-muted" i18n>Section:</td>
21-
<td>{{ sectionString() }}</td>
22-
</tr>
19+
@if (sectionString()) {
20+
<tr>
21+
<td class="text-muted" i18n>Section:</td>
22+
<td>{{ sectionString() }}</td>
23+
</tr>
24+
}
2325
@if (problemDetails().comment) {
2426
<tr>
2527
<td class="text-muted">

0 commit comments

Comments
 (0)