Skip to content

Commit b7b820e

Browse files
committed
chore: adjust sizes of the price and currency fields on the series info page
Fix #1195
1 parent 3d31b67 commit b7b820e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/main/webapp/WEB-INF/static/styles/main.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ label {
116116
}
117117

118118
.number-input {
119-
width: 4em;
119+
/* !important is needed in order to override "width: auto" from .form-control */
120+
width: 4em !important;
120121
}
121122

122123
.image-gallery {

src/main/webapp/WEB-INF/views/series/info.html

+6-3
Original file line numberDiff line numberDiff line change
@@ -456,11 +456,11 @@ <h5 class="text-center" th:text="#{t_similar_series}">
456456
</p>
457457
/*/-->
458458

459-
<p id="number-of-stamps-block" th:if="${series.quantity != 1}">
459+
<p id="number-of-stamps-block" th:if="${series.quantity != 1}" class="form-inline">
460460
<span th:text="#{t_i_have}" th:remove="tag">I have</span>
461461
<input id="number-of-stamps"
462462
type="number"
463-
class="number-input"
463+
class="form-control input-sm number-input"
464464
required="required"
465465
min="1"
466466
max="7"
@@ -480,11 +480,13 @@ <h5 class="text-center" th:text="#{t_similar_series}">
480480
th:text="${error}"></span>
481481
</p>
482482
/*/-->
483-
<p th:with="price_msg=#{t_price},paidUser=${#authorization.expression('hasAuthority(''ADD_SERIES_PRICE'')')}"
483+
<p class="form-inline"
484+
th:with="price_msg=#{t_price},paidUser=${#authorization.expression('hasAuthority(''ADD_SERIES_PRICE'')')}"
484485
th:attrappend="title=${paidUser ? null : '__#{t_only_for_paid_users}__'}">
485486

486487
<span th:text="#{t_i_bought_for}" th:remove="tag">I bought for</span>
487488
<input id="paid-price"
489+
class="form-control input-sm number-input"
488490
type="text"
489491
size="5"
490492
placeholder="price"
@@ -493,6 +495,7 @@ <h5 class="text-center" th:text="#{t_similar_series}">
493495
th:disabled="${paidUser ? null : 'disabled'}"
494496
/>
495497
<select id="paid-currency"
498+
class="form-control input-sm"
496499
th:field="*{currency}"
497500
th:disabled="${paidUser ? null : 'disabled'}">
498501
<option value=""></option>

0 commit comments

Comments
 (0)