neo4j-documentation / docs-ui

Mozilla Public License 2.0
4 stars 23 forks source link

Fix code blocks style #181

Closed stefano-ottolenghi closed 1 year ago

stefano-ottolenghi commented 1 year ago

The background reason lies in fixing the scrollbar when code blocks are embedded in summary tags, as in #180. The issue stems from width: 100%, and shifting all the surrounding style to the pre container fixes that and also removes an extra set of rules, by merging it with an already existent set. No conflicts or regressions noticed on a bunch of docsets I tested it against.

Before before

After after

netlify[bot] commented 1 year ago

Deploy Preview for neo4j-docs-ui ready!

Name Link
Latest commit 0f34c7c8c055b809788071a70cca019cb5a1d0ea
Latest deploy log https://app.netlify.com/sites/neo4j-docs-ui/deploys/64a673dbe9a269000886e582
Deploy Preview https://deploy-preview-181--neo4j-docs-ui.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.