|
@@ -95,15 +95,8 @@ ConnectionIndicator.prototype.generateText = function () {
|
95
|
95
|
return `${width}x${height}`;
|
96
|
96
|
}).join(', ') || 'N/A';
|
97
|
97
|
|
98
|
|
- let headerKey = 'connectionindicator.header';
|
99
|
98
|
let result = (
|
100
|
|
- `<table style='width:100%'>
|
101
|
|
- <tr>
|
102
|
|
- <td>
|
103
|
|
- <span class="jitsipopover__title"
|
104
|
|
- data-i18n="">${translate(headerKey)}</span>
|
105
|
|
- </td>
|
106
|
|
- </tr>
|
|
99
|
+ `<table class="connection-info__container" style='width:100%'>
|
107
|
100
|
<tr>
|
108
|
101
|
<td>
|
109
|
102
|
<span data-i18n='connectionindicator.bitrate'>
|
|
@@ -111,10 +104,8 @@ ConnectionIndicator.prototype.generateText = function () {
|
111
|
104
|
</span>
|
112
|
105
|
</td>
|
113
|
106
|
<td>
|
114
|
|
- <span class='jitsipopover__green'>↓</span>
|
115
|
|
- ${downloadBitrate}
|
116
|
|
- <span class='jitsipopover__orange'>↑</span>
|
117
|
|
- ${uploadBitrate}
|
|
107
|
+ <span class='jitsipopover__green'>↓</span>${downloadBitrate}
|
|
108
|
+ <span class='jitsipopover__orange'>↑</span>${uploadBitrate}
|
118
|
109
|
</td>
|
119
|
110
|
</tr>
|
120
|
111
|
<tr>
|
|
@@ -245,7 +236,7 @@ ConnectionIndicator.prototype.generateText = function () {
|
245
|
236
|
|
246
|
237
|
}
|
247
|
238
|
|
248
|
|
- result += "<table style='width:100%'>" +
|
|
239
|
+ result += "<table class='connection-info__container' style='width:100%'>" +
|
249
|
240
|
"<tr>" +
|
250
|
241
|
"<td>" +
|
251
|
242
|
"<span data-i18n='connectionindicator.bandwidth'>" +
|
|
@@ -292,7 +283,7 @@ ConnectionIndicator.prototype.create = function () {
|
292
|
283
|
this.connectionIndicatorContainer);
|
293
|
284
|
this.popover = new JitsiPopover(
|
294
|
285
|
$("#" + this.videoContainer.videoSpanId + " > .connectionindicator"),
|
295
|
|
- {content: "<div class=\"connection_info\" data-i18n='connectionindicator.na'>" +
|
|
286
|
+ {content: "<div class=\"connection-info\" data-i18n='connectionindicator.na'>" +
|
296
|
287
|
APP.translation.translateString("connectionindicator.na") + "</div>",
|
297
|
288
|
skin: "black"});
|
298
|
289
|
|
|
@@ -405,9 +396,9 @@ ConnectionIndicator.prototype.updatePopoverData = function (force) {
|
405
|
396
|
// popover is visible or we force to do so.
|
406
|
397
|
if(this.popover.popoverShown || force) {
|
407
|
398
|
this.popover.updateContent(
|
408
|
|
- `<div class="connection_info">${this.generateText()}</div>`
|
|
399
|
+ `<div class="connection-info">${this.generateText()}</div>`
|
409
|
400
|
);
|
410
|
|
- APP.translation.translateElement($(".connection_info"));
|
|
401
|
+ APP.translation.translateElement($(".connection-info"));
|
411
|
402
|
}
|
412
|
403
|
};
|
413
|
404
|
|