1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-03 09:07:19 +00:00

Fix wrapping long code lines in UI (#5927)

Wrapping was initially added in https://github.com/go-gitea/gitea/pull/2789
but it is currently disabled because the rule that applies wrapping to
the wrap class did not have enough CSS specificity.

Resolved the issue by using a general selector that matches all code
boxes. The previous wrap class was removed because it had only been
inconsistenly applied to various code boxes and because I found no easy
way to add classes to code boxes rendered in Markdown.

Also removed a seemingly useless :before on code view and added padding
to restore the spacing.
This commit is contained in:
silverwind
2019-02-02 17:58:28 +01:00
committed by zeripath
parent af22df8314
commit 12ee544411
5 changed files with 11 additions and 25 deletions

View File

@ -370,13 +370,10 @@
padding: 0 !important;
li {
display: block;
width: 100%;
padding: 0 .25em;
&.active {
background: #ffffdd;
}
&:before {
content: ' ';
}
}
}
}