1
Fork 0

Fix search appearance

This commit is contained in:
Guillaume Gomez 2018-03-27 10:33:31 +02:00
parent 184156ed97
commit 96ef2f8ab9
2 changed files with 20 additions and 3 deletions

View file

@ -1171,6 +1171,10 @@
return h1.innerHTML; return h1.innerHTML;
} }
function pathSplitter(path) {
return '<span>' + path.replace(/::/g, '::</span><span>');
}
function addTab(array, query, display) { function addTab(array, query, display) {
var extraStyle = ''; var extraStyle = '';
if (display === false) { if (display === false) {
@ -1225,7 +1229,7 @@
output += '<tr class="' + type + ' result"><td>' + output += '<tr class="' + type + ' result"><td>' +
'<a href="' + href + '">' + '<a href="' + href + '">' +
displayPath + '<span class="' + type + '">' + pathSplitter(displayPath) + '<span class="' + type + '">' +
name + '</span></a></td><td>' + name + '</span></a></td><td>' +
'<a href="' + href + '">' + '<a href="' + href + '">' +
'<span class="desc">' + escape(item.desc) + '<span class="desc">' + escape(item.desc) +

View file

@ -296,6 +296,11 @@ nav.sub {
overflow: auto; overflow: auto;
} }
#results > table {
width: 100%;
table-layout: fixed;
}
.content pre.line-numbers { .content pre.line-numbers {
float: left; float: left;
border: none; border: none;
@ -577,8 +582,16 @@ a {
display: block; display: block;
} }
.content .search-results td:first-child { padding-right: 0; } .content .search-results td:first-child {
.content .search-results td:first-child a { padding-right: 10px; } padding-right: 0;
width: 75%;
}
.content .search-results td:first-child a {
padding-right: 10px;
}
.content .search-results td:first-child a span {
float: left;
}
tr.result span.primitive::after { tr.result span.primitive::after {
content: ' (primitive type)'; content: ' (primitive type)';