-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix code block style for code preview #30298
Conversation
e54df68
to
f72f6f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't the change to the alert parsing missing?
@@ -63,7 +63,7 @@ func TestProcessorHelperCodePreview(t *testing.T) { | |||
<table class="file-view"> | |||
<tbody><tr> | |||
<td class="lines-num"><span data-line-number="1"></span></td> | |||
<td class="lines-code chroma"><code class="code-inner"><span class="gh"># repo1</code></td> | |||
<td class="lines-code chroma"><span class="code-inner"><span class="gh"># repo1</span></td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why span
instead of div
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry but I didn't get the point. What missing? |
f72f6f3
to
045c285
Compare
Much better this way. Rendering inside markup is always tricky and the less mismatching styles the better. |
Fix go-gitea#30292 To avoid unnecessary style overriding, use "div" instead of "code"
* giteaofficial/main: (26 commits) Fix oauth2 builtin application logic (go-gitea#30304) [skip ci] Updated licenses and gitignores Some NuGet package enhancements (go-gitea#30280) Fix and rewrite contrast color calculation, fix project-related bugs (go-gitea#30237) Add `--page-spacing` variable, fix admin dashboard notice (go-gitea#30302) Action view mobile improvements and fixes (go-gitea#30309) Fix checkboxes on mobile view, remove some dead css (go-gitea#30308) Clean up log messages (go-gitea#30313) Fix right-aligned input icons (go-gitea#30301) Refactor startup deprecation messages (go-gitea#30305) [skip ci] Updated translations via Crowdin Remove fomantic list module (go-gitea#30281) Markup color and font size fixes (go-gitea#30282) Fix code block style for code preview (go-gitea#30298) Always use `octicon-eye` on watch button (go-gitea#30288) Fix view commit link (go-gitea#30297) Add gap to commit status details (go-gitea#30284) Update JS dependencies and add new eslint rules (go-gitea#30279) Upgrade `golang.org/x/net` to v0.24.0 (go-gitea#30283) Commit-Dropdown: Show Author of commit if available (go-gitea#30272) ... # Conflicts: # templates/base/footer_content.tmpl
Fix go-gitea#30292 To avoid unnecessary style overriding, use "div" instead of "code"
Fix #30292
To avoid unnecessary style overriding, use "div" instead of "code":