fix: improve topbar drag behavior and pre block text wrapping#2
Open
jerrykimo wants to merge 1 commit into
Open
fix: improve topbar drag behavior and pre block text wrapping#2jerrykimo wants to merge 1 commit into
jerrykimo wants to merge 1 commit into
Conversation
- Add user-select: none and cursor: default to .app-name and .file-name to prevent I-beam cursor when dragging the title bar - Add white-space: pre-wrap, word-break: break-word, and overflow-wrap: anywhere to .article pre blocks for better Chinese text readability
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
改动说明 / What's Changed
1. 标题栏拖拽优化
user-select: none和cursor: default2.
<pre>代码块内文本折行.article pre添加了white-space: pre-wrap、word-break: break-word、overflow-wrap: anywherewhite-space: pre不换行,导致右侧内容被截断overflow-x: auto作为兜底横滑测试 / Tested
web/styles.css中有 2 处修改,共 +9 行