From 8c15f37490ff360ab29ddecc6821dd2a4cc43a10 Mon Sep 17 00:00:00 2001 From: Steffen Becker Date: Sun, 9 Aug 2026 05:59:58 +0000 Subject: [PATCH] fix: nothing is drawn past the edge of the sheet A formula wider than the text area painted over the app background instead of being cut at the page edge, where LibreOffice cuts it (thesis fixture, page 16). `overflow-x: clip` so .paper does not become a scroll box. --- src/styles/editor.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/styles/editor.css b/src/styles/editor.css index a2c4a33..46fe1e0 100644 --- a/src/styles/editor.css +++ b/src/styles/editor.css @@ -27,6 +27,9 @@ Editor.svelte), which lives inside .paper so the same transform scales it identically to the .tiptap page background. */ position: relative; + /* A frame or a formula wider than the text area is cut at the sheet's edge, as it is + in LibreOffice. `clip` rather than `hidden`: it must not become a scroll box. */ + overflow-x: clip; } .paper .tiptap {