1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00

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 <me@silverwind.io>
This commit is contained in:
Giteabot 2024-04-03 11:51:34 +08:00 committed by GitHub
parent e8d5d5ed49
commit 5c9cbeafed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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