1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-01-06 10:00:26 +00:00

Make search results look more like /list

This commit is contained in:
Timur Ismagilov 2021-07-12 18:31:18 +05:00
parent 938a9e832d
commit e7a53dbc22
3 changed files with 6 additions and 6 deletions

View File

@ -11,10 +11,10 @@
.modal__title_small { font-size: 1.5rem; }
.modal__confirmation-msg { margin: 0 0 .5rem 0; }
.hypha-list { padding-left: 0; }
.hypha-list__entry { list-style-type: none; }
.hypha-list__link { text-decoration: none; display: inline-block; padding: .25rem; }
.hypha-list__link:hover { text-decoration: underline; }
.hypha-list, .primitive-search__results { padding-left: 0; }
.hypha-list__entry, .primitive-search__entry { list-style-type: none; }
.hypha-list__link, .primitive-search__link { text-decoration: none; display: inline-block; padding: .25rem; }
.hypha-list__link:hover, .primitive-search__link:hover { text-decoration: underline; }
.hypha-list__amnt-type { font-size: smaller; color: #999; }
/* General element positions, from small to big */

View File

@ -50,7 +50,7 @@
<ul class="primitive-search__results">
{% for hyphaName := range generator(query) %}
<li class="primitive-search__entry">
<a class="primitive-search__link wikilink" href="/hypha/{%s hyphaName %}">{%s hyphaName %}</a>
<a class="primitive-search__link wikilink" href="/hypha/{%s hyphaName %}">{%s util.BeautifulName(hyphaName) %}</a>
</li>
{% endfor %}
</main>

View File

@ -160,7 +160,7 @@ func StreamPrimitiveSearchHTML(qw422016 *qt422016.Writer, query string, generato
//line views/stuff.qtpl:53
qw422016.N().S(`">`)
//line views/stuff.qtpl:53
qw422016.E().S(hyphaName)
qw422016.E().S(util.BeautifulName(hyphaName))
//line views/stuff.qtpl:53
qw422016.N().S(`</a>
</li>