Closed Collinbrown95 closed 3 weeks ago
Thanks for reporting and the PR.
I also fixed the underlying root cause: The partial was missing in the tailwindcss processor (we need to think about a better solution here), as the gap-x-4 was not picked up.
https://github.com/datacontract/datacontract-cli/commit/bc8bec3e0858802d86dced316c8182d3a34d09ff
Description
When I run
datacontract export datacontract.yaml --format html > datacontract.html
on the example provided in the repo, the Servers section of the html page places the headings and the values close together as shown in the screenshot below.Proposed Solution
I wrapped the
dt
anddd
elements in a<div class="flex flex-col">
, and also addedpx-3
(horizontal padding) to each div. The modified layout looks as follows.I'll open a PR with the implementation described above, happy to revise this approach if one of the maintainers has another idea.