Skip to content

Commit f6dff8e

Browse files
authored
Merge pull request #350 from canjs/fix-search-result-subtitle
Fixed bug causing subtitle to spill out of it's container
2 parents c78ff9f + d556d82 commit f6dff8e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

static/search.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
color: @link-color;
8686
padding-bottom:0;
8787
display: inline-block;
88+
width: 100%;
8889
&:hover {
8990
text-decoration: none;
9091
}

templates/search-results.stache

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@
1818
<li>
1919
<a href="{{docUrl}}" title="{{result.name}}" class="result-name">
2020
{{#if result.title}}{{result.title}}{{else}}{{result.name}}{{/if}}
21-
21+
2222

2323
{{#if result.title}}
24-
<span class="name">
25-
({{result.name}})
26-
</span>
24+
{{^eq result.name result.title}}
25+
<span class="name">
26+
{{result.name}}
27+
</span>
28+
{{/eq}}
2729
{{/if}}
2830

2931
{{#if result.description}}

0 commit comments

Comments
 (0)