Set print screen to A4 not mobile

Created on 17 October 2023, about 1 year ago
Updated 10 January 2024, 10 months ago

Problem/Motivation

When I print a gin page the print preview is set to mobile view

This cause problems when I want to print views tables or grids.

I tried adding:

@media print {
  @page {
    size: 330mm 427mm;
    margin: 14mm;
  }
  .container {
    width: 1170px;
  }
}

to my private://gin-custom.css

But no success. Please help

Steps to reproduce

Open up /admin/config with your gin theme enabled in full screen (desktop)
Notice the 2 column layout

Click print in your browser
Notice the 1 column mobile layout in print preview.

Proposed resolution

https://developer.mozilla.org/en-US/docs/Web/CSS/@page/size

As a feature requests maybe add a print options in theme settings where you can set page layout, size and margin as described above

Or a simple

@media print {
  @page {
    size: 330mm 427mm;
    margin: 14mm;
  }
  .container {
    width: 1170px;
  }
}

css that can be edited by developers safely

✨ Feature request
Status

Closed: won't fix

Component

Miscellaneous

Created by

πŸ‡ΏπŸ‡¦South Africa vlooi vlerke

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024