Skip to content

Commit 5c9cbea

Browse files
GiteaBotsilverwind
andauthored
Show 12 lines in markup code preview (#30255) (#30257)
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 <[email protected]>
1 parent e8d5d5e commit 5c9cbea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/css/markup/codepreview.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
.markup .code-preview-container table {
1414
width: 100%;
15-
max-height: 100px;
15+
max-height: 240px; /* 12 lines at 20px per line */
1616
overflow-y: auto;
1717
margin: 0; /* override ".markup table {margin}" */
1818
}

0 commit comments

Comments
 (0)