Invoice preview very small

Since the last two updates or so suddenly the preview from the invoices are very small. It’s only the case with the invoices that are changed with the theme enhancer. The standard layout is okay. The layout from the generated PDF has the normal layout. Any suggestion how I can fix this?

Server edition: 25.10.4.2873 running on a synology disc station.

Invoice preview to small

The standard layout looks oké

If you want your theme to be of certain minimum width on the screen, make sure you define min-width (preferrably on body element).

<style>
    body {
        min-width: 800px;
    }
</style>

Without setting minimum width, your custom theme will try to occupy only the space it needs. This is useful when theme is optimized for narrow print (e.g. thermal printers). But if your theme is meant to be printed on A4 or similar, then you probably want min-width to be set.

Thanks Lubos, that was the solution!