Den mån 12 juli 2021 kl 18:16 skrev Nathan Hartman <[email protected]
>:
> [...]
>
> These fixes have solved that issue; however pages that have
> <pre>...</pre> formatted text cause the viewport to stretch when the
> lines of text are longer than can fit in the viewport. On some pages
> there are some quite long lines of preformatted text. Adding a
> "overflow-x: auto;" to the CSS for pre tags in site.css seems to fix
> it without affecting readability: It allows the pre tag itself to
> scroll if needed, but the rest of the page stays put; e.g.,:
>
> [[[
>
> Index: style/site.css
> ===================================================================
> --- style/site.css (revision 1891484)
> +++ style/site.css (working copy)
> @@ -54,6 +54,7 @@ pre {
> padding: 0.25em;
> margin: 0 2em;
> font-size: 90%;
> + overflow-x: auto;
> }
>
> /*
>
> ]]]
>
Good catch! Your patch seems fine to me. I committed to check on the
staging site and it looks good both on my computer and in my phone.
Thanks!
/Daniel