diff --git a/website/meta/site.json b/website/meta/site.json index 2b65e1d84..4defdf913 100644 --- a/website/meta/site.json +++ b/website/meta/site.json @@ -29,7 +29,7 @@ "spacyVersion": "2.1", "binderUrl": "ines/spacy-io-binder", "binderBranch": "nightly", - "binderVersion": "2.1.0a8", + "binderVersion": "2.1.0a9", "sections": [ { "id": "usage", "title": "Usage Documentation", "theme": "blue" }, { "id": "models", "title": "Models Documentation", "theme": "blue" }, diff --git a/website/src/components/typography.js b/website/src/components/typography.js index 721521939..e23339758 100644 --- a/website/src/components/typography.js +++ b/website/src/components/typography.js @@ -94,9 +94,13 @@ const Headline = ({ }) => { // This can be set via hidden="true" and as a prop, so we need to accept both if (hidden === true || hidden === 'true') return null + const hasAction = !!source || !!action + const headingClassNames = classNames(classes.heading, className, { + [classes.clear]: hasAction, + }) const tags = tag ? tag.split(',').map(t => t.trim()) : [] return ( - + {children} {tags.map((tag, i) => ( @@ -114,7 +118,7 @@ const Headline = ({ )} - {(source || action) && ( + {hasAction && (
{source && (