Skip to content

Commit

Permalink
feat(search): style perf metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Gusted committed Aug 27, 2021
1 parent b7d7184 commit 9a089cf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions scss/ui/_base.scss
Expand Up @@ -263,3 +263,15 @@ label[for="remember"] {
border: 1px solid var(--bg-4);
> pre { border: none } // TODO: Remove when refactoring.
}

.search-perf-metrics {
line-height: 1.5;
color: var(--fg-2);
> :nth-child(2) {
padding-left: 0.25rem;
&::after {
content: '|';
padding: 0 0.5rem;
}
}
}
6 changes: 3 additions & 3 deletions views/core/search.html
Expand Up @@ -33,10 +33,10 @@ <h1>Search</h1>

<section class="mt:l">
{{ if gt (len .Styles) 0 }}
<h3>Metrics of search engine:</h3>
<div>
<div class="flex search-perf-metrics">
<span class="f:b">Metrics of search engine:</span>
<p>Hits: {{ .Metrics.Hits }}</p>
<p>TIme Spent: {{ Elapsed .Metrics.TimeSpent }}</p>
<p>Time Spent: {{ Elapsed .Metrics.TimeSpent }}</p>
</div>

{{/* template "partials/debug-styles" . */}}
Expand Down

0 comments on commit 9a089cf

Please sign in to comment.