From f022bffad48d41a25a5443fbe0e8ccc8aab0c711 Mon Sep 17 00:00:00 2001 From: dualfroz Date: Sat, 17 Oct 2026 03:41:05 +0200 Subject: [PATCH] fix(pdf): toolbar close label stays on one line in a narrow viewer In a narrow PDF pane the toolbar has less room than its buttons need, so they shrink to their min-content width. break-normal keeps an English label like Close in one piece, but CJK text may break between any two characters, so the Chinese, Japanese and Korean close labels wrapped one character per line and stuck out of the toolbar. Toolbar buttons are white-space: nowrap now. --- src/main/frontend/extensions/pdf/pdf.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/frontend/extensions/pdf/pdf.css b/src/main/frontend/extensions/pdf/pdf.css index 9f770db..aeceac4 100644 --- a/src/main/frontend/extensions/pdf/pdf.css +++ b/src/main/frontend/extensions/pdf/pdf.css @@ -77,7 +77,7 @@ input::-webkit-inner-spin-button { > .r { a.button { @apply select-none flex items-center mx-2 py-1 px-0.5 bg-transparent - transition-none break-normal hover:opacity-80; + transition-none break-normal whitespace-nowrap hover:opacity-80; &.is-active { @apply opacity-100 rounded-none;