diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-02-04 16:44:53 +0100 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-02-13 16:35:24 +0100 |
commit | 9b8a7aa8ea128f7e197ff38ca9f86ffa53bbe110 (patch) | |
tree | f38e6f83a9d892a99f930c0a25b1a405e679cd4a /client/src/app/header/suggestion.component.html | |
parent | ece3029bd99a76b3c48a1cc8c58914c5cf61f106 (diff) | |
download | PeerTube-9b8a7aa8ea128f7e197ff38ca9f86ffa53bbe110.tar.gz PeerTube-9b8a7aa8ea128f7e197ff38ca9f86ffa53bbe110.tar.zst PeerTube-9b8a7aa8ea128f7e197ff38ca9f86ffa53bbe110.zip |
Improve search typeahead performance and use native events
Diffstat (limited to 'client/src/app/header/suggestion.component.html')
-rw-r--r-- | client/src/app/header/suggestion.component.html | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/client/src/app/header/suggestion.component.html b/client/src/app/header/suggestion.component.html index 894cacb95..edde2023a 100644 --- a/client/src/app/header/suggestion.component.html +++ b/client/src/app/header/suggestion.component.html | |||
@@ -9,15 +9,9 @@ | |||
9 | <div class="flex-auto overflow-hidden text-left no-wrap css-truncate css-truncate-target" [attr.aria-label]="result.text" [innerHTML]="result.text | highlight : highlight"></div> | 9 | <div class="flex-auto overflow-hidden text-left no-wrap css-truncate css-truncate-target" [attr.aria-label]="result.text" [innerHTML]="result.text | highlight : highlight"></div> |
10 | 10 | ||
11 | <div *ngIf="result.type !== 'channel' && result.type !== 'suggestion'" class="border rounded flex-shrink-0 px-1 bg-gray text-gray-light ml-1 f6"> | 11 | <div *ngIf="result.type !== 'channel' && result.type !== 'suggestion'" class="border rounded flex-shrink-0 px-1 bg-gray text-gray-light ml-1 f6"> |
12 | <span *ngIf="result.type === 'search-channel'" [attr.aria-label]="inThisChannelText"> | 12 | <span *ngIf="result.type === 'search-channel'" i18n>In this channel</span> |
13 | {{ inThisChannelText }} | 13 | <span *ngIf="result.type === 'search-instance'" i18n>In this instance</span> |
14 | </span> | 14 | <span *ngIf="result.type === 'search-global'" i18n>In the vidiverse</span> |
15 | <span *ngIf="result.type === 'search-instance'" [attr.aria-label]="inThisInstanceText"> | ||
16 | {{ inThisInstanceText }} | ||
17 | </span> | ||
18 | <span *ngIf="result.type === 'search-global'" [attr.aria-label]="inAllText"> | ||
19 | {{ inAllText }} | ||
20 | </span> | ||
21 | <span *ngIf="result.type === 'search-any'" aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span> | 15 | <span *ngIf="result.type === 'search-any'" aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span> |
22 | </div> | 16 | </div> |
23 | 17 | ||