Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2023-02-13 15:47:27 +08:00
commit 592e5f4cd8

View file

@ -38,7 +38,8 @@ export const setTabPosition = () => {
item.headersElement.style.paddingLeft = "";
}
} else {
if (rect.top <= 0 && rect.right >= window.innerWidth) {
// 显示器缩放后像素存在小数点偏差 https://github.com/siyuan-note/siyuan/issues/7355
if (rect.top <= 0 && rect.right + 8 >= window.innerWidth) {
(headerElement.lastElementChild as HTMLElement).style.paddingRight = (42 * 3) + "px";
} else {
(headerElement.lastElementChild as HTMLElement).style.paddingRight = "";