Merge branch 'master' into 'master'

Make main search input a form instead of a div

Closes #22

See merge request framasoft/peertube/search-index!8
This commit is contained in:
Chocobozzz 2020-12-29 16:01:53 +01:00
commit b5c9d189b5
1 changed files with 3 additions and 3 deletions

View File

@ -6,8 +6,8 @@
</router-link>
<main>
<div id="search-anchor" class="search-container" v-bind:class="{ 'search-container-small': !searchDone }" role="search">
<input v-bind:placeholder="inputPlaceholder" autofocus v-on:keyup.enter="doNewSearch()" type="text" v-model="formSearch" name="search-text" autocapitalize="off" autocomplete="off" autocorrect="off" maxlength="1024" />
<form id="search-anchor" class="search-container" v-bind:class="{ 'search-container-small': !searchDone }" role="search" onsubmit="return false;">
<input v-bind:placeholder="inputPlaceholder" autofocus v-on:keyup.enter="doNewSearch()" type="text" v-model="formSearch" name="search" autocapitalize="off" autocomplete="off" autocorrect="off" maxlength="1024" />
<button v-on:click="doNewSearch()">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
@ -17,7 +17,7 @@
<translate>Go!</translate>
</button>
</div>
</form>
<h3 v-if="!searchDone" v-bind:class="{ 'none-opacity': !instancesCount }" v-translate="{ instancesCount: instancesCount, indexedInstancesUrl: indexedInstancesUrl, indexName: indexName }">
Search for your favorite videos and channels on <a href="%{indexedInstancesUrl}" target="_blank">%{instancesCount} PeerTube websites</a> indexed by %{indexName}!