ArctosDB / arctos

Arctos is a museum collections management system
https://arctos.database.museum
60 stars 13 forks source link

Arctos Report: MVZ wide box labels #5632

Open mkoo opened 1 year ago

mkoo commented 1 year ago

Description of the report for dry box labels

Collection for which the report is needed - MVZ:Mamm and MVZ:Bird (I think we need two separate ones after all)

Work in progress and notes are on edited print out at the workstation.

mkoo commented 1 year ago

We had a problem with labels getting cut off at the bottom of pages. @JhK830 figured out how to address this in the CSS

in the cell class, she added: flex-direction: column; with the specific dimensions of the label. The labels are designed to be cut out and placed on top of dry boxes.

Full CSS example below:

/* set size is 64 mm wide by 42 mm height */
.cell {
  width: 64mm;
  height: 42mm;
  max-width: 64mm;
  padding: 2px;
  border: 1px black dashed;
  page-break-inside: avoid;
  font-family: Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
dustymc commented 1 year ago

Interesting! I think https://github.com/ArctosDB/arctos/issues/5767 is browser-print not understanding grid, but it apparently knows flex?! Maybe a point for a how-to or something??

mkoo commented 1 year ago

woop-- missed that issue -- print from screen! yea-- it's a combo of browser/print/ css flex/angels and demons that seem to control your end product here. I will discuss that issue with students too