From 4797a627f461204b289f95f61b64e3dab8bc00ff Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Thu, 27 Aug 2026 14:08:06 -0400 Subject: Display PDF blobs GitHub renders a PDF with a viewer of its own and so ships no content for one, leaving the blob view with nothing to show. Its raw bytes come as application/octet-stream, which browsers download rather than display, so serve them from a new embed route that retypes them and point an at that. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01BErPR92xppzGFXkPqXPYj2 --- public/static/style.css | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'public/static/style.css') diff --git a/public/static/style.css b/public/static/style.css index ed64bc6..157cc15 100644 --- a/public/static/style.css +++ b/public/static/style.css @@ -276,6 +276,13 @@ body > footer { } } +object.pdf { + display: block; + width: 100%; + height: 80vh; + padding: 0; +} + pre.box { /* Instead of scrolling overflow for long lines, grow the box. */ width: fit-content; -- cgit v1.3.1