Skip to content

doc: prevent tables from shrinking page

Checklist

This change prevents tables from growing so wide that they shrink the page on mobile.

Problem (currently on https://nodejs.org/api/crypto.html):

nodejs org_dist_latest-v13 x_docs_api_crypto html(iPhone 6_7_8)

Now, on phones, table content will break if it has to, so the page loads the same width as all the other pages. The padding's a tiny bit less, too.

nodejs org_dist_latest-v13 x_docs_api_crypto html(iPhone 6_7_8) (1)

On larger screens, the first column is prevented from wrapping, since it often contains variables. Content in other columns will still wrap (note the URLs wrap, which they don't currently).

nodejs org_dist_latest-v13 x_docs_api_crypto html(iPad)

Merge request reports

Loading