mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 04:59:22 -06:00
Prevent rendering of excessive <li> wrapper around a category breadcrumb which already is a <li>.
The excessive <li> wrapper coming from the template is automatically closed by the browser during the HTML parsing step, causing an empty <li> being visible in the rendered source (preceding the first breadcrumb). This causes a visual bug when not using the default Discourse stylesheet, because the extra LI element pushes the content to the right and sometimes also renders an extra black pixel.
This commit is contained in:
parent
2dc5e3c81e
commit
0a330544b3
@ -1,11 +1,7 @@
|
||||
<li>
|
||||
{{category-drop category=firstCategory categories=parentCategories}}
|
||||
</li>
|
||||
{{category-drop category=firstCategory categories=parentCategories}}
|
||||
|
||||
{{#if childCategories}}
|
||||
<li>
|
||||
{{category-drop category=secondCategory parentCategory=firstCategory categories=childCategories subCategory="true" noSubcategories=noSubcategories}}
|
||||
</li>
|
||||
{{category-drop category=secondCategory parentCategory=firstCategory categories=childCategories subCategory="true" noSubcategories=noSubcategories}}
|
||||
{{/if}}
|
||||
|
||||
<div class='clear'></div>
|
||||
|
Loading…
Reference in New Issue
Block a user