Placing table in label editor adds unnecesary margins on left and top of label
Describe the bug There is about 13mm on left and about 9mm on top margins when using table in label editor.
To Reproduce Steps to reproduce the behavior:
- Tools -> Edit -> Label Profiles
- Edit existing or add new label profile
- Select Barcode at None
- Add table to label
- Add border to labels (optional, helps see where table is located)
- Add some text or placeholders
- Save or update label to see it below
Expected behavior Placing placeholders or any other text outside table puts it left aligned, table also should fill whole label
Screenshots
Server Side
- Part-DB Version: 2.2.1 also the same problem is on live demo
Desktop (please complete the following information):
- OS: Windows 10
- Browser: firefox, opera
- Version latest
Additional context For me using table would make labels much more useful, would fix some problems where longer names would make lines below disappear below label end.
You can go to the "Advanced" Tab of your Label profile and add the following css code in the "Additional styles (CSS)" field: @page { margin: 2px 2px; }
What I also found help full, was to switch to "Source" in the Editor and see how the HTML-code looks like and remove html-p-tags if not wanted.
You can also use the variables paper_height, paper_width to size your tables when you use the "Parser mode" "Twig".
But I agree with you, the Wysiwyg editor shouldn't waste that much space.