Skip to content

Commit b52ddb1

Browse files
authored
Fix text alignment of parsing options (#78)
Fixes #70
1 parent 9c1e0de commit b52ddb1

File tree

2 files changed

+33
-28
lines changed

2 files changed

+33
-28
lines changed

module/scripts/index/commons-parsing-panel.html

Lines changed: 21 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,40 +19,33 @@
1919

2020
<div bind="controlPanel" class="commons-importing-parsing-control-panel">
2121
<div class="grid-layout layout-normal">
22-
<table>
22+
<table class="parsing-options-table">
2323
<tr>
24-
<td width="1%" bind="commons_options"></td>
24+
<td class="commons-options" bind="commons_options"></td>
2525
<td bind="commons_wiki_options"></td>
26-
<td style="text-align: right;" rowspan="2"><button class="button" bind="previewButton"></button></td>
26+
<td class="preview-button"><button class="button" bind="previewButton"></button></td>
2727
</tr>
28-
<tr>
29-
<td style="text-align: right;">&nbsp;</td>
30-
<td style="text-align: right;" colspan="2" width="1%"><input type="checkbox" bind="disableAutoPreviewCheckbox" id="$disable" />
28+
<tr class="disable-auto-preview">
29+
<td>&nbsp;</td>
30+
<td>&nbsp;</td>
31+
<td><input type="checkbox" bind="disableAutoPreviewCheckbox" id="$disable" />
3132
<label for="$disable" bind="commons_disable_auto_preview"></label></td>
3233
</tr>
34+
<tr class="checkboxes">
35+
<td><input type="checkbox" bind="skipCheckbox" id="$skip" />
36+
<label for="$skip" bind="commons_discard_next"></label>
37+
<input bind="skipInput" type="text" class="lightweight" size="2" value="0" />
38+
<label for="$skip" bind="commons_discard"></label></td>
39+
<td><input type="checkbox" bind="categoriesColumnCheckbox" id="$categoriesCol" />
40+
<label for="$categoriesCol" bind="commons_categories_column"></label></td>
41+
</tr>
3342
<tr>
34-
<td colspan="2">
35-
<div class="grid-layout layout-tightest">
36-
<table>
37-
<tr>
38-
<td width="1%"><input type="checkbox" bind="skipCheckbox" id="$skip" /></td>
39-
<td><label for="$skip" bind="commons_discard_next"></label></td>
40-
<td><input bind="skipInput" type="text" class="lightweight" size="2" value="0" />
41-
<label for="$skip" bind="commons_discard"></label></td>
42-
<td width="1%"><input type="checkbox" bind="categoriesColumnCheckbox" id="$categoriesCol" /></td>
43-
<td><label for="$categoriesCol" bind="commons_categories_column"></label></td>
44-
</tr>
45-
<tr>
46-
<td width="1%"><input type="checkbox" bind="limitCheckbox" id="$limit" /></td>
47-
<td><label for="$limit" bind="commons_limit_next"></label></td>
48-
<td><input bind="limitInput" type="text" class="lightweight" size="2" value="0" />
49-
<label for="$limit" bind="commons_limit"></label></td>
50-
<td width="1%"><input type="checkbox" bind="mIdsCheckbox" id="$mIdsCol" /></td>
51-
<td><label for="$mIdsCol" bind="commons_mids_column"></label></td>
52-
</tr>
53-
</table>
54-
</div>
55-
</td>
43+
<td><input type="checkbox" bind="limitCheckbox" id="$limit" />
44+
<label for="$limit" bind="commons_limit_next"></label>
45+
<input bind="limitInput" type="text" class="lightweight" size="2" value="0" />
46+
<label for="$limit" bind="commons_limit"></label></td>
47+
<td><input type="checkbox" bind="mIdsCheckbox" id="$mIdsCol" />
48+
<label for="$mIdsCol" bind="commons_mids_column"></label></td>
5649
</tr>
5750
</table>
5851
</div>

module/styles/commons-importing-controller.less

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,18 @@ div.grid-layout > table.categoriesTable > tbody > tr > td.depth-input-td {
6666
padding-left: 5px;
6767
}
6868

69+
table.parsing-options-table {
70+
width: 100%;
71+
}
72+
73+
.commons-options {
74+
width: 25%;
75+
}
76+
77+
.preview-button {
78+
width: 1%;
79+
}
80+
6981
.fbs-reset.fbs-pane.fbs-pane-type {
7082
width:561px;
7183
}

0 commit comments

Comments
 (0)