From ab98e6cedce74b5963f110e459bfd1fa6dccee79 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Wed, 11 Aug 2021 19:26:28 +0300 Subject: [PATCH] [SSE] Fix paddings of math items in statusbar --- .../main/app/view/Statusbar.js | 5 ++++ .../main/resources/less/statusbar.less | 23 +++++++++++++------ 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/Statusbar.js b/apps/spreadsheeteditor/main/app/view/Statusbar.js index da4d226ed2..c4c59654c8 100644 --- a/apps/spreadsheeteditor/main/app/view/Statusbar.js +++ b/apps/spreadsheeteditor/main/app/view/Statusbar.js @@ -637,6 +637,11 @@ define([ this.labelSum.text((info.sum && info.sum.length) ? (this.textSum + ': ' + info.sum) : ''); this.labelAverage.text((info.average && info.average.length) ? (this.textAverage + ': ' + info.average) : ''); + this.labelMin[info.min && info.min.length > 0 ? 'show' : 'hide'](); + this.labelMax[info.max && info.max.length > 0 ? 'show' : 'hide'](); + this.labelSum[info.sum && info.sum.length > 0 ? 'show' : 'hide'](); + this.labelAverage[info.average && info.average.length > 0 ? 'show' : 'hide'](); + this.customizeStatusBarMenu.items.forEach(function (item) { if (item.options.id === 'math-item-average') { item.options.exampleval = (info.average && info.average.length) ? info.average : ''; diff --git a/apps/spreadsheeteditor/main/resources/less/statusbar.less b/apps/spreadsheeteditor/main/resources/less/statusbar.less index 4eef1a4a8f..d763980b82 100644 --- a/apps/spreadsheeteditor/main/resources/less/statusbar.less +++ b/apps/spreadsheeteditor/main/resources/less/statusbar.less @@ -130,17 +130,10 @@ #status-filtered-box { //float: right; padding-top: 6px; - padding-right: 14px; position: absolute; height: 25px; - label { - &:not(:last-child) { - padding-right: 10px; - } - } - .separator { position: relative; padding-right: 11px; @@ -148,6 +141,22 @@ } } + #status-math-box { + padding-right: 4px; + label { + padding-right: 10px; + } + } + + #status-filtered-box { + padding-right: 14px; + label { + &:not(:last-child) { + padding-right: 10px; + } + } + } + #status-sheets-bar-box { position: absolute; overflow: hidden;