Improved search header

- Highlight both channel and search query
- By moving search query to topic we can ensure nice behaviour for long search queries (eg. when searching for an url)
This commit is contained in:
Nachtalb 2021-04-13 01:06:30 +02:00
parent 13d4f035df
commit 1b13905195
No known key found for this signature in database
GPG Key ID: E48DF13C07055D92

View File

@ -17,10 +17,10 @@
<div class="header">
<SidebarToggle />
<span class="title"
>Search results for "{{ $route.query.q }}" in
{{ $route.params.target }}</span
>Searching in
<span class="channel-name">{{ $route.params.target }}</span> for</span
>
<span class="topic"></span>
<span class="topic">{{ $route.query.q }}</span>
<MessageSearchForm :network="network" :channel="channel" />
</div>
<div class="chat-content">
@ -80,6 +80,12 @@
</div>
</template>
<style>
.channel-name {
font-weight: 700;
}
</style>
<script>
import socket from "../../js/socket";