Преглед на файлове

Fix some visual bugs

j8
Ilya Daynatovich преди 8 години
родител
ревизия
a4c3348630

+ 4
- 2
css/_base.scss Целия файл

@@ -36,7 +36,6 @@ input[type='text'], input[type='password'], textarea {
36 36
     color: $inputColor;
37 37
     border-radius: $borderRadius;
38 38
     line-height: 32px;
39
-    letter-spacing: $letterSpacing;
40 39
     height: 32px;
41 40
     text-align: left;
42 41
     border:1px solid $inputBorderColor;
@@ -45,6 +44,10 @@ input[type='text'], input[type='password'], textarea {
45 44
     resize: none; /* prevents the user-resizing, adjust to taste */
46 45
 }
47 46
 
47
+@include placeholder {
48
+    color: $inputColor;
49
+}
50
+
48 51
 textarea {
49 52
     overflow: hidden;
50 53
     word-wrap: break-word;
@@ -61,7 +64,6 @@ button, input, select, textarea {
61 64
     vertical-align: baseline;
62 65
     color: $inputColor;
63 66
     font-size: 1em;
64
-    letter-spacing: $letterSpacing;
65 67
 }
66 68
 
67 69
 button, select, input[type="button"],

+ 18
- 0
css/_mixins.scss Целия файл

@@ -76,4 +76,22 @@
76 76
     -webkit-box-shadow: $type $h $y $blur $color;
77 77
     -moz-box-shadow: $type $h $y $blur $color;
78 78
     box-shadow: $type $h $y $blur $color;
79
+}
80
+
81
+/**
82
+* Mixin styling placeholder
83
+**/
84
+@mixin placeholder() {
85
+    $selectors: (
86
+        "::-webkit-input-placeholder",
87
+        "::-moz-placeholder",
88
+        ":-moz-placeholder",
89
+        ":-ms-input-placeholder"
90
+    );
91
+
92
+    @each $selector in $selectors {
93
+        #{$selector} {
94
+            @content;
95
+        }
96
+    }
79 97
 }

+ 0
- 1
css/_side_toolbar_container.scss Целия файл

@@ -12,7 +12,6 @@
12 12
     max-width: $sidebarWidth;
13 13
     z-index: 800;
14 14
     overflow: hidden;
15
-    letter-spacing: $titleLetterSpacing;
16 15
 
17 16
     /**
18 17
      * Labels inside the side panel.

+ 0
- 1
css/_videolayout_default.scss Целия файл

@@ -183,7 +183,6 @@
183 183
     text-overflow: ellipsis;
184 184
     font-size: 12px;
185 185
     font-weight: 100;
186
-    letter-spacing: 1px;
187 186
     overflow: hidden;
188 187
     white-space: nowrap;
189 188
     line-height: $thumbnailToolbarHeight;

+ 1
- 1
css/buttons/_button-control.scss Целия файл

@@ -4,6 +4,7 @@
4 4
     border: 1px solid $buttonBorder;
5 5
     vertical-align: baseline;
6 6
     height: 30px;
7
+    min-width: 60px;
7 8
     padding: 4px 10px;
8 9
     margin: 0;
9 10
     line-height: 1.5em;
@@ -13,7 +14,6 @@
13 14
     font-size: 14px;
14 15
     margin-left: 10px;
15 16
     color: $buttonColor;
16
-    letter-spacing: $letterSpacing;
17 17
     font-weight: $buttonFontWeight;
18 18
     @include transition(background-color .1s ease-out);
19 19
 

+ 0
- 2
css/modals/_dialog.scss Целия файл

@@ -37,7 +37,6 @@
37 37
                 h2 {
38 38
                     font-size: em(20, 12);
39 39
                     font-weight: $dialogTitleFontWeight;
40
-                    letter-spacing: $titleLetterSpacing;
41 40
                     color: $auiDialogColor;
42 41
                 }
43 42
 
@@ -58,7 +57,6 @@
58 57
 
59 58
                 p,span, h3 {
60 59
                     font-weight: $labelFontWeight;
61
-                    letter-spacing: $letterSpacing;
62 60
                 }
63 61
 
64 62
                 &:last-child {

+ 0
- 2
css/themes/_light.scss Целия файл

@@ -36,8 +36,6 @@ $inputBackground: #fff;
36 36
 $inputBorderColor: #ccc;
37 37
 $inputColor: #333;
38 38
 $defaultDarkSelectionColor: #ccc;
39
-$titleLetterSpacing: 0;
40
-$letterSpacing: 0;
41 39
 $buttonFontWeight: 400;
42 40
 $labelFontWeight: 400;
43 41
 $hintFontSize: em(13, 14);

+ 5
- 2
lang/main.json Целия файл

@@ -195,7 +195,9 @@
195 195
         "connecting": "Connecting",
196 196
         "copy": "Copy",
197 197
         "error": "Error",
198
-        "addPassword": "Add Password",
198
+        "roomLocked": "This call is locked. New callers must have the link and enter the password to join",
199
+        "addPassword": "Add a password",
200
+        "createPassword": "Create password",
199 201
         "detectext": "Error when trying to detect desktopsharing extension.",
200 202
         "failtoinstall": "Failed to install desktop sharing extension",
201 203
         "failedpermissions": "Failed to obtain permissions to use the local microphone and/or camera.",
@@ -217,6 +219,7 @@
217 219
         "defaultError": "There was some kind of error",
218 220
         "passwordRequired": "Password required",
219 221
         "Ok": "Ok",
222
+        "done": "Done",
220 223
         "Remove": "Remove",
221 224
         "removePassword": "Remove password",
222 225
         "shareVideoTitle": "Share a video",
@@ -243,7 +246,7 @@
243 246
         "sipMsg": "Enter SIP number",
244 247
         "passwordCheck": "Are you sure you would like to remove your password?",
245 248
         "passwordMsg": "Set a password to lock your room",
246
-        "shareLink": "Copy and share this link",
249
+        "shareLink": "Share the link to the call",
247 250
         "settings1": "Configure your conference",
248 251
         "settings2": "Participants join muted",
249 252
         "settings3": "Require nicknames<br/><br/>Set a password to lock your room:",

+ 12
- 17
modules/UI/invite/InviteDialogView.js Целия файл

@@ -103,16 +103,21 @@ export default class InviteDialogView {
103 103
         let {
104 104
             titleString
105 105
         } = this.dialog;
106
-
106
+        let doneKey = 'dialog.done';
107
+        let doneMsg = APP.translation.translateString(doneKey);
107 108
         let states = {};
109
+        let buttons = {};
110
+        buttons[`${doneMsg}`] = true;
108 111
 
109 112
         states[States.UNLOCKED] = {
110 113
             title: titleString,
111
-            html: this.getShareLinkBlock() + this.getAddPasswordBlock()
114
+            html: this.getShareLinkBlock() + this.getAddPasswordBlock(),
115
+            buttons
112 116
         };
113 117
         states[States.LOCKED] = {
114 118
             title: titleString,
115
-            html: this.getShareLinkBlock() + this.getPasswordBlock()
119
+            html: this.getShareLinkBlock() + this.getPasswordBlock(),
120
+            buttons
116 121
         };
117 122
 
118 123
         return states;
@@ -125,7 +130,7 @@ export default class InviteDialogView {
125 130
     getShareLinkBlock() {
126 131
         let copyKey = 'dialog.copy';
127 132
         let copyText = APP.translation.translateString(copyKey);
128
-        let roomLockDescKey = 'roomLocked';
133
+        let roomLockDescKey = 'dialog.roomLocked';
129 134
         let roomLockDesc = APP.translation.translateString(roomLockDescKey);
130 135
         let roomUnlockKey = 'roomUnlocked';
131 136
         let roomUnlock = APP.translation.translateString(roomUnlockKey);
@@ -165,6 +170,8 @@ export default class InviteDialogView {
165 170
         let addPassText = APP.translation.translateString(addPassKey);
166 171
         let addKey = 'dialog.add';
167 172
         let addText = APP.translation.translateString(addKey);
173
+        let hintKey = 'dialog.createPassword';
174
+        let hintMsg = APP.translation.translateString(hintKey);
168 175
         let html;
169 176
 
170 177
         if (this.model.isModerator) {
@@ -175,7 +182,7 @@ export default class InviteDialogView {
175 182
                        data-i18n="${addPassKey}">${addPassText}</label>
176 183
                 <div class="input-control__container">
177 184
                     <input class="input-control__input" id="newPasswordInput"
178
-                           type="text">
185
+                           type="text" placeholder="${hintMsg}">
179 186
                     <button id="addPasswordBtn" id="inviteDialogAddPassword"
180 187
                             disabled data-i18n="${addKey}"
181 188
                             class="button-control button-control_light">
@@ -242,7 +249,6 @@ export default class InviteDialogView {
242 249
      * Opening the dialog
243 250
      */
244 251
     open() {
245
-        let leftButton;
246 252
         let {
247 253
             submitFunction,
248 254
             loadedFunction,
@@ -250,23 +256,12 @@ export default class InviteDialogView {
250 256
         } = this.dialog;
251 257
 
252 258
         let states = this.getStates();
253
-
254
-        let buttons = [];
255
-        let leftButtonKey = "dialog.Invite";
256
-        let cancelButton
257
-            = APP.translation.generateTranslationHTML("dialog.Cancel");
258
-        buttons.push({title: cancelButton, value: false});
259
-
260
-        leftButton = APP.translation.generateTranslationHTML(leftButtonKey);
261
-        buttons.push({ title: leftButton, value: true});
262
-
263 259
         let initial = this.model.roomLocked ? States.LOCKED : States.UNLOCKED;
264 260
 
265 261
         APP.UI.messageHandler.openDialogWithStates(states, {
266 262
             submit: submitFunction,
267 263
             loaded: loadedFunction,
268 264
             close: closeFunction,
269
-            buttons,
270 265
             size: 'medium'
271 266
         });
272 267
         $.prompt.goToState(initial);

Loading…
Отказ
Запис