Skip to content

Commit abd2fb0

Browse files
Fix settings styling
1 parent db88fbf commit abd2fb0

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

Diff for: src/templates/_settings.twig

+20-9
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@
1010

1111
<tr>
1212
<td style="padding:4px 40px 4px {{ depth * 16 }}px;border-top: 1px solid #f1f5f8;">
13-
<span class="icon" data-icon="{{ depth == 0 ? 'database' : 'categories' }}"></span>
13+
<span class="icon" data-icon="{{ depth == 0 ? 'database' : 'folder' }}"></span>
1414
{{ folder }}
1515
</td>
1616
<td style="padding:4px 20px 4px 0;border-top: 1px solid #f1f5f8;">
17-
<input type="number" name="folderOptions[{{ folder.id }}][maxUploadSize]" value="{{ options.maxUploadSize|default('') }}" style="text-align:right;width:75px;" />
17+
<input type="number" name="folderOptions[{{ folder.id }}][maxUploadSize]" value="{{ options.maxUploadSize|default('') }}" class="chupInput table" />
1818
MB
1919
</td>
2020
<td style="padding:4px 20px 4px 0;border-top: 1px solid #f1f5f8;">
21-
<input type="number" name="folderOptions[{{ folder.id }}][maxImageWidth]" value="{{ options.maxImageWidth|default('') }}" style="text-align:right;width:75px;" />
21+
<input type="number" name="folderOptions[{{ folder.id }}][maxImageWidth]" value="{{ options.maxImageWidth|default('') }}" class="chupInput table" />
2222
Pixel
2323
</td>
2424
<td style="padding:4px 20px 4px 0;border-top: 1px solid #f1f5f8;">
25-
<input type="number" name="folderOptions[{{ folder.id }}][maxImageHeight]" value="{{ options.maxImageHeight|default('') }}" style="text-align:right;width:75px;" />
25+
<input type="number" name="folderOptions[{{ folder.id }}][maxImageHeight]" value="{{ options.maxImageHeight|default('') }}" class="chupInput table" />
2626
Pixel
2727
</td>
2828
</tr>
@@ -34,26 +34,37 @@
3434
{% if depth == 0 %}
3535
<tr>
3636
<td style="padding:4px 40px 4px 16px;border-top: 1px solid #f1f5f8;">
37-
<span class="icon" data-icon="categories"></span>
38-
<input name="folderOptions[{{ folder.id }}][create][path]">
37+
<span class="icon" data-icon="folder"></span>
38+
<input name="folderOptions[{{ folder.id }}][create][path]" class="chupInput">
3939
</td>
4040
<td style="padding:4px 20px 4px 0;border-top: 1px solid #f1f5f8;">
41-
<input type="number" name="folderOptions[{{ folder.id }}][create][maxUploadSize]" style="text-align:right;width:75px;" />
41+
<input type="number" name="folderOptions[{{ folder.id }}][create][maxUploadSize]" class="chupInput table" />
4242
MB
4343
</td>
4444
<td style="padding:4px 20px 4px 0;border-top: 1px solid #f1f5f8;">
45-
<input type="number" name="folderOptions[{{ folder.id }}][create][maxImageWidth]" style="text-align:right;width:75px;" />
45+
<input type="number" name="folderOptions[{{ folder.id }}][create][maxImageWidth]" class="chupInput table" />
4646
Pixel
4747
</td>
4848
<td style="padding:4px 20px 4px 0;border-top: 1px solid #f1f5f8;">
49-
<input type="number" name="folderOptions[{{ folder.id }}][create][maxImageHeight]" style="text-align:right;width:75px;" />
49+
<input type="number" name="folderOptions[{{ folder.id }}][create][maxImageHeight]" class="chupInput table" />
5050
Pixel
5151
</td>
5252
</tr>
5353
{% endif %}
5454
{% endfor %}
5555
{% endmacro %}
5656

57+
<style>
58+
.chupInput {
59+
border: 1px solid rgba(96,125,159,.25);
60+
}
61+
62+
.chupInput.table {
63+
width: 75px;
64+
text-align: right;
65+
}
66+
</style>
67+
5768
<h3>Global settings</h3>
5869
{{ forms.textField({
5970
errors: settings.getErrors('maxUploadSize'),

0 commit comments

Comments
 (0)