useblocks / sphinx-simplepdf

A simple PDF builder for Sphinx documentations
https://sphinx-simplepdf.readthedocs.io
MIT License
32 stars 14 forks source link

Imported needs layout different to standard html layout #75

Closed kreuzberger closed 1 year ago

kreuzberger commented 1 year ago

Using the "Html" build for needs the layout "focus_l" is shown as expected on imported needs. This is different in simplepdf builds: The imported needs are shown not "left" aligned, the table is divided into 2 parts at same size. grafik

This seems to come from main.css

table.need, table.NEEDS_DATATABLES, .needs_style_ssp-table-wrap {
  table-layout: fixed; }

Changing table-layout to auto solves this issue. Is this intended for needs or just an issue with the needs-import? Or should another ssp- style applied? In sphinx-needs source code the default colwidths are 5,95 but not exported into html as colgroup or something.

kreuzberger commented 1 year ago

This could be fixed by setting the width property of table.needs_layout_focus_l td.side to a fixed value. This then also fixes the issue that the conent is floated in the cell and is not strictly left aligned.