mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 01:25:16 +00:00
Change: more flexible column width calculation
This commit is contained in:
parent
838c211198
commit
0d8ee9ced7
@ -48,14 +48,15 @@ angular.module('redash.filters', []).
|
||||
|
||||
.filter('colWidth', function () {
|
||||
return function (widgetWidth) {
|
||||
if (widgetWidth == 0) {
|
||||
if (widgetWidth === 0) {
|
||||
return 0;
|
||||
}
|
||||
if (widgetWidth == 1) {
|
||||
} else if (widgetWidth === 1) {
|
||||
return 6;
|
||||
} else if (widgetWidth === 2) {
|
||||
return 12;
|
||||
}
|
||||
return 12;
|
||||
}
|
||||
return widgetWidth;
|
||||
};
|
||||
})
|
||||
|
||||
.filter('capitalize', function () {
|
||||
|
Loading…
Reference in New Issue
Block a user