mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
592e5f4cd8
1 changed files with 2 additions and 1 deletions
|
|
@ -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 = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue