Skip to content

Commit 8482854

Browse files
authored
Merge pull request #675 from waiterZen/guidelines-waiter2
[slipping-away-users] fix style issue
2 parents 2aaebb3 + cffebf4 commit 8482854

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugins/slipping-away-users/frontend/public/javascripts/countly.views.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ window.slippingView = countlyView.extend({
5050

5151
slippingChartData.chartDP.dp[0].data.push([index, item.count]);
5252
slippingChartData.chartDP.ticks.push([index, item.period + ' days']);
53-
item.percentage = "<div style='width:100%; box-sizing:border-box;'><div class='percent-bar' style='width:" + (item.percentage) + "%;'></div><span style='margin-right:-70px;'>" + item.percentage + "%</span></div>";
53+
item.percentage = "<div style='width:90%; box-sizing:border-box;'><div class='percent-bar' style='width:" + (item.percentage) + "%;'></div><span style='margin-right:-70px;'>" + item.percentage + "%</span></div>";
5454
if (countlyGlobal.plugins.indexOf("users") >= 0) {
5555
if (item.count > 0) {
5656
item.userList = "<a class='extable-link table-link green' href='#/users/query/" + JSON.stringify({ "ls": {"$lt": item.timeStamp}}) + "' target='_blank'>" +
@@ -78,10 +78,11 @@ window.slippingView = countlyView.extend({
7878
countlyCommon.drawGraph(slippingChartData.chartDP, "#dashboard-graph", "bar");
7979

8080
var columnsDefine = [
81-
{ "mData": "period", sType: "numeric", "sTitle": jQuery.i18n.map["slipping.period"] },
81+
{ "mData": "period", sType: "numeric", "sTitle": jQuery.i18n.map["slipping.period"], "sWidth": "20%" },
8282
{
8383
"mData": "count",
8484
"sType": "numeric",
85+
"sWidth": "20%",
8586
"sTitle": jQuery.i18n.map["slipping.count"],
8687
"mRender": function(d) {
8788
return countlyCommon.formatNumber(d);

0 commit comments

Comments
 (0)