Skip to content

Conversation

@Dreeam-qwq
Copy link
Contributor

移除 code block 样式内不必要的 z-index

z-index 是用来规定重叠元素的层级关系的。两个按钮的 z-index 都是 auto,而这里的 code block 的 z-index 错误的规定为 1,会导致 code block 的元素覆盖按钮的元素,进而导致无法选中,视觉上就是点不动无法使用。

参考 https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/z-index

移除 code block 样式内不必要的 z-index

z-index 是用来规定重叠元素的层级关系
的。两个按钮的 z-index 都是 auto,而
这里的 code block 的 z-index 错误的规
定为 1,会导致 code block 的元素覆盖
按钮的元素,进而导致无法选中,视觉上就是点不动无法使用。

参考 https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/z-index
@cloudflare-workers-and-pages
Copy link

Deploying sapling with  Cloudflare Pages  Cloudflare Pages

Latest commit: 65a5e07
Status: ✅  Deploy successful!
Preview URL: https://a74faf16.sapling-8jp.pages.dev
Branch Preview URL: https://fix-code-block-button.sapling-8jp.pages.dev

View logs

@wling-art wling-art merged commit 851e601 into main Dec 13, 2025
2 checks passed
@wling-art wling-art deleted the fix/code-block-button branch December 13, 2025 11:59
@Dreeam-qwq Dreeam-qwq added the type: docs site Pull request for code changes related to the site itself label Dec 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: docs site Pull request for code changes related to the site itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants