Skip to content

Commit 09e9fb8

Browse files
committed
Pre should fill available space
1 parent 98feaa3 commit 09e9fb8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

views/htmx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def highlight_code(self, filename: str, content: str, *, index: int, raw_url: st
5858
</div>
5959
</div>
6060
{annotations}
61-
<pre id="__paste_c_{index}" class="fileContent"><code>{content}</code></pre>
61+
<pre id="__paste_c_{index}" class="fileContent" style="display: flex; flex-grow: 1;"><code>{content}</code></pre>
6262
</div>"""
6363

6464
def check_discord(self, request: starlette_plus.Request) -> starlette_plus.Response | None:

web/static/scripts/hidecopy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function hideFile(button, index) {
1212
pastea.style.flexGrow = "0";
1313
} else {
1414
button.textContent = "Hide";
15-
pastec.style.display = "block";
15+
pastec.style.display = "flex";
1616
pastea.style.flexGrow = "1";
1717
}
1818
}

0 commit comments

Comments
 (0)