fix: 优化移动端背景图显示并更新通知内容

- 为移动端浏览器添加 will-change 和 transform 属性,防止动态 URL 栏导致的背景跳动
- 在站点通知中添加关于背景图缩放问题的反馈提示
This commit is contained in:
二叉树树
2026-01-24 22:33:14 +08:00
parent d83aa08d86
commit bc419d631d
2 changed files with 4 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ import { LinkPreset } from "./types/config";
export const noticeConfig: NoticeConfig = {
enable: true,
level: "warning",
content: "请注意,该博客对于每篇文章都是有评论区的,在确保你的网络可以访问 giscus.app 的情况下,如果你看不到或者必须手动刷新后才能看见,请反馈。",
content: "请注意,该博客对于每篇文章都是有评论区的,在确保你的网络可以访问 giscus.app 的情况下,如果你看不到或者必须手动刷新后才能看见,请反馈。<br>另外如果你遇到了背景图被缩放的Bug也请反馈。",
};
export const siteConfig: SiteConfig = {

View File

@@ -218,6 +218,9 @@ const bannerOffset =
pointer-events: none;
z-index: -1;
transition: opacity 0.3s ease-in-out;
/* Prevent background jump on mobile browsers with dynamic URL bars */
will-change: transform;
transform: translateZ(0);
}
#bg-box.loaded {