Part-DB-server icon indicating copy to clipboard operation
Part-DB-server copied to clipboard

Placing table in label editor adds unnecesary margins on left and top of label

Open kjr18 opened this issue 2 months ago • 1 comments

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:

  1. Tools -> Edit -> Label Profiles
  2. Edit existing or add new label profile
  3. Select Barcode at None
  4. Add table to label
  5. Add border to labels (optional, helps see where table is located)
  6. Add some text or placeholders
  7. 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

Image

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.

kjr18 avatar Oct 22 '25 06:10 kjr18

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.

mkne avatar Oct 23 '25 06:10 mkne