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