Skip to content

Commit

Permalink
Show 12 lines in markup code preview (#30255) (#30257)
Browse files Browse the repository at this point in the history
Backport #30255 by @silverwind

Show up to 12 lines instead of previous 5.

<img width="929" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/de68f200-b9e2-4a25-bd6e-c46849849620">

Co-authored-by: silverwind <me@silverwind.io>
  • Loading branch information
GiteaBot and silverwind authored Apr 3, 2024
1 parent e8d5d5e commit 5c9cbea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/css/markup/codepreview.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

.markup .code-preview-container table {
width: 100%;
max-height: 100px;
max-height: 240px; /* 12 lines at 20px per line */
overflow-y: auto;
margin: 0; /* override ".markup table {margin}" */
}
Expand Down

0 comments on commit 5c9cbea

Please sign in to comment.