diff --git a/src/lib/templates.js b/src/lib/templates.js index 999482734..4358ae364 100644 --- a/src/lib/templates.js +++ b/src/lib/templates.js @@ -6,11 +6,11 @@ let templates = { suggestion: `
{{{category}}}
-
{{{subcategory}}}
+
{{{subcategory}}}
{{{subcategory}}}
{{{title}}}
diff --git a/src/styles/main.scss b/src/styles/main.scss index 880cfa957..130391977 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -141,6 +141,14 @@ max-width: 135px; // Hardcoded min-width: 135px; // Hardcoded } + + .algolia-docsearch-suggestion--subcategory-column-text { + display: none; + + .algolia-docsearch-suggestion__secondary & { + display: block; + } + } .algolia-docsearch-suggestion--content { display: table-cell; padding: 5px 10px;