From 0fba7c23434928c62d6bbc6e4a3b652606ecf2de Mon Sep 17 00:00:00 2001 From: patakuti Date: Sat, 20 Jun 2026 10:08:12 +0900 Subject: [PATCH] Fix print CSS partially applied due to external stylesheet timing Wait for all elements to finish loading before calling window.print(). This prevents the theme CSS (dynamically switched via localStorage on page load) from being missing in the print preview. A 3-second timeout ensures the print dialog is never blocked indefinitely. Co-Authored-By: Claude Sonnet 4.6 --- internal/template/template.go | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/internal/template/template.go b/internal/template/template.go index f9ad5b3..9b843a6 100644 --- a/internal/template/template.go +++ b/internal/template/template.go @@ -119,11 +119,28 @@ const markdownPageTplTail = `