Remove clickable padding from preview close button

This commit is contained in:
Charles Gagnon
2019-06-21 00:02:11 -04:00
parent 22b7e80b8e
commit f3cf8b3916

View File

@@ -764,9 +764,8 @@ var Preview = Utils.defineClass({
}
}
closeButton.set_style('padding: ' + Math.max(closeButtonPadding, 0) + 'px;');
this._closeButtonBin.set_style(
'padding: ' + Math.max(closeButtonPadding, 0) + 'px; ' +
this._getBackgroundColor(HEADER_COLOR_OFFSET, headerHeight ? 1 : .6) +
closeButtonBorderRadius
);