Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit cc37971

Browse files
committed
chore(docs): use max-height for code highlighting
1 parent 82fe1dd commit cc37971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/highlight-code/index.marko

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ $ const promise = prettier.format(code.trim(), {
5353

5454
<style>
5555
pre[class*=language-] {
56-
height: ${height}px;
56+
max-height: ${height}px;
5757
overflow: auto;
5858
}
5959

0 commit comments

Comments
 (0)