Skip to content

Commit

Permalink
Update GlobalSearchValueController.js
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxianhjy authored Sep 11, 2024
1 parent cafde02 commit ea2f0c4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ function GlobalSearchValueController($scope, $window, $translate, toastr, AppUti
element.style.fontFamily = '"Open Sans", sans-serif';
const devicePixelRatio = window.devicePixelRatio;
const zoomLevel = Math.round((window.outerWidth / window.innerWidth) * 100) / 100;
element.style.fontSize = `${13 * devicePixelRatio * zoomLevel}px`;
element.style.padding = `${8 * devicePixelRatio * zoomLevel}px`;
element.style.width = `${valueColumn.offsetWidth * devicePixelRatio * zoomLevel}px`;
element.style.fontSize = 13 * devicePixelRatio * zoomLevel + 'px';
element.style.padding = 8 * devicePixelRatio * zoomLevel + 'px';
element.style.width = valueColumn.offsetWidth * devicePixelRatio * zoomLevel + 'px';
}

function determinePosition(value, highlight) {
Expand Down

0 comments on commit ea2f0c4

Please sign in to comment.