Skip to content

Commit

Permalink
Remove unnecessary inline style for tab-size (#31224)
Browse files Browse the repository at this point in the history
Move the rule to the parent node. `tab-size` is inherited so will work
just as before.
  • Loading branch information
silverwind authored Jun 3, 2024
1 parent cb27c43 commit 0f0db6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion routers/web/repo/issue_content_history.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func GetContentHistoryDetail(ctx *context.Context) {

// use chroma to render the diff html
diffHTMLBuf := bytes.Buffer{}
diffHTMLBuf.WriteString("<pre class='chroma' style='tab-size: 4'>")
diffHTMLBuf.WriteString("<pre class='chroma'>")
for _, it := range diff {
if it.Type == diffmatchpatch.DiffInsert {
diffHTMLBuf.WriteString("<span class='gi'>")
Expand Down
1 change: 1 addition & 0 deletions web_src/css/repo.css
Original file line number Diff line number Diff line change
Expand Up @@ -2322,6 +2322,7 @@ tbody.commit-list {
min-height: 12em;
max-height: calc(100vh - 10.5rem);
overflow-y: auto;
tab-size: 4;
}

.comment-diff-data pre {
Expand Down

0 comments on commit 0f0db6a

Please sign in to comment.