From efdf9e1bc02fe43c8abf3ee4b7b52881b13bb60d Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Wed, 10 Feb 2021 16:36:49 +0300 Subject: [PATCH] [common] repaired combo styles scaled view --- apps/common/main/resources/less/combo-dataview.less | 5 ++++- apps/common/main/resources/less/variables.less | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/common/main/resources/less/combo-dataview.less b/apps/common/main/resources/less/combo-dataview.less index 8984aa4c7..64e886fcd 100644 --- a/apps/common/main/resources/less/combo-dataview.less +++ b/apps/common/main/resources/less/combo-dataview.less @@ -87,7 +87,10 @@ padding: 3px; border: @scaled-one-px-value solid @border-regular-control; .box-shadow(none); - margin: 0 -1px -1px 0; + + @minus-px: calc(-1px / @pixel-ratio-factor); + margin: 0 @minus-px @minus-px 0; + height: @combo-dataview-height; &:hover { diff --git a/apps/common/main/resources/less/variables.less b/apps/common/main/resources/less/variables.less index 80b206894..112d516cf 100644 --- a/apps/common/main/resources/less/variables.less +++ b/apps/common/main/resources/less/variables.less @@ -1,7 +1,7 @@ // // Global values // -------------------------------------------------- -@pixel-ratio-factor: var(--pixel-ratio-factor); +@pixel-ratio-factor: var(--pixel-ratio-factor, 1); @scaled-one-px-value: var(--scaled-one-pixel, 1px); @scaled-two-px-value: var(--scaled-two-pixel, 2px);