diff --git a/docs/index.md b/docs/index.md index 2afc4fb..0dd0bf8 100644 --- a/docs/index.md +++ b/docs/index.md @@ -421,14 +421,13 @@ conventional_branch = true
  • A fix you can paste, whenever the correction is unambiguous.
  • - +

    $ echo "Fix: add streaming support" | commit-check -m

    -

    1✖ CC001 message failed:

    -

    2Fix: add streaming support

    -

    3The commit message should follow Conventional Commits. See https://www.conventionalcommits.org

    +

    1✖ CC001 message failed:2Fix: add streaming support

    +

    3The commit message should follow Conventional Commits. See https://www.conventionalcommits.org

    4Suggest: Use "fix: add streaming support"

    -

    Docs: https://commit-check.com/rules/#cc001

    +

    Docs: https://commit-check.com/rules/#cc001

    diff --git a/docs/stylesheets/landing.css b/docs/stylesheets/landing.css index a219ae7..c66a3be 100644 --- a/docs/stylesheets/landing.css +++ b/docs/stylesheets/landing.css @@ -2032,6 +2032,29 @@ padding-left: 34px; } +/* The explanation is longer than the panel is wide: wrap it like a terminal + would, under its own text, instead of scrolling the panel sideways. */ +.md-typeset .cc-diag p.cc-diag__wrap { + white-space: normal; + align-items: flex-start; + line-height: 1.6; + padding: 5px 0; +} + +/* The CLI prints the value on the rule's own line, so its mark sits inline. */ +.cc-diag .cc-mark--inline { + display: inline-flex; + vertical-align: middle; + position: relative; + top: -1px; + margin: 0 8px 0 10px; +} + +/* Keep "Docs:" padded to line up with "Suggest:", as the CLI prints it. */ +.md-typeset .cc-diag p.cc-diag__docs { + white-space: pre-wrap; +} + /* ---------------------------------------------------------------- proof -- */ .md-typeset .cc-proof {