修复代码高亮块上的展开/复制按钮无法使用 #33
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
移除 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