Skip to content

Commit da8f10b

Browse files
committed
more aesthetics
1 parent a0b16f5 commit da8f10b

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

services/static-webserver/client/source/class/osparc/ui/form/IntlTelInput.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,26 +143,28 @@ qx.Class.define("osparc.ui.form.IntlTelInput", {
143143

144144
const textColor = qx.theme.manager.Color.getInstance().resolve("text");
145145
const bgColor = qx.theme.manager.Color.getInstance().resolve("input_background");
146+
const height = isCompact ? 23 : 25;
146147

147148
if (isCompact) {
148149
phoneNumber.set({
149150
margin: 0,
150-
minWidth: 185,
151-
maxHeight: 25
151+
marginLeft: -1,
152152
});
153153
} else {
154154
phoneNumber.set({
155155
marginTop: 2,
156156
marginLeft: 2,
157157
marginRight: 2,
158-
minWidth: 185,
159-
maxHeight: 25
160158
})
161159
}
160+
phoneNumber.set({
161+
minWidth: 185,
162+
maxHeight: height,
163+
});
162164

163165
if (itiInput) {
164166
itiInput.a.style["width"] = feedbackIcon.isVisible() ? "185px" : "215px";
165-
itiInput.a.style["height"] = "25px";
167+
itiInput.a.style["height"] = height + "px";
166168
itiInput.a.style["borderWidth"] = "0px";
167169
itiInput.a.style["backgroundColor"] = isCompact ? "transparent" : bgColor;
168170
itiInput.a.style["color"] = textColor;

services/static-webserver/client/source/resource/intl-tel-input/css/intlTelInput.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727
display: flex;
2828
align-items: center;
2929
height: 100%;
30-
padding: 0 6px 0 8px; }
30+
padding: 0 6px 0 8px;
31+
/* osparc */
32+
padding: 0 4px 0 4px;
33+
}
3134
.iti__arrow {
3235
margin-left: 6px;
3336
width: 0;

0 commit comments

Comments
 (0)