Added search by voice input
This commit is contained in:
@ -21,6 +21,8 @@ component Sidebar(user *arn.User)
|
||||
.sidebar-button
|
||||
Icon("search")
|
||||
FuzzySearch
|
||||
.speech-input.action(data-action="searchBySpeech", data-trigger="click", title="Voice input")
|
||||
RawIcon("microphone")
|
||||
|
||||
//- Sidebar buttons
|
||||
if user != nil
|
||||
|
@ -102,3 +102,16 @@ const sidebar-spacing-y = 0.7rem
|
||||
background badge-important-hover-bg-color
|
||||
color badge-important-text-color
|
||||
text-shadow none
|
||||
|
||||
// Microphone icon
|
||||
.speech-input
|
||||
opacity 0.5
|
||||
default-transition
|
||||
|
||||
:hover
|
||||
cursor pointer
|
||||
opacity 1
|
||||
|
||||
.speech-listening
|
||||
color link-hover-color
|
||||
opacity 1
|
||||
|
Reference in New Issue
Block a user