mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-24 01:15:08 +01:00
Search setting button style improvement
This commit is contained in:
parent
bd5795f1c1
commit
d36ee504dd
1 changed files with 15 additions and 3 deletions
|
|
@ -39,8 +39,9 @@
|
|||
@click="showSearchPanel = !showSearchPanel"
|
||||
class="settings-toggle"
|
||||
type="button"
|
||||
v-tooltip="showSearchPanel ? $t('Hide Search Options') : $t('Show Search Options')"
|
||||
>
|
||||
{{ showSearchPanel ? 'Hide' : 'Show' }} Search Options
|
||||
<IconConfigEditor />
|
||||
</button>
|
||||
<div v-show="showSearchPanel" class="settings-row">
|
||||
<label class="theme-label">
|
||||
|
|
@ -60,6 +61,7 @@
|
|||
import router from '@/router';
|
||||
import ArrowKeyNavigation from '@/utils/ArrowKeyNavigation';
|
||||
import ErrorHandler from '@/utils/ErrorHandler';
|
||||
import IconConfigEditor from '@/assets/interface-icons/config-editor.svg';
|
||||
import { getCustomKeyShortcuts } from '@/utils/ConfigHelpers';
|
||||
import { getSearchEngineFromBang, findUrlForSearchEngine, stripBangs } from '@/utils/Search';
|
||||
import {
|
||||
|
|
@ -74,6 +76,9 @@ export default {
|
|||
props: {
|
||||
minimalSearch: Boolean, // If true, then keep it simple
|
||||
},
|
||||
components: {
|
||||
IconConfigEditor,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
input: '',
|
||||
|
|
@ -300,8 +305,8 @@ export default {
|
|||
background: var(--settings-background);
|
||||
color: var(--settings-text-color);
|
||||
border: none;
|
||||
padding: 0.5rem 1rem;
|
||||
margin: 0.5rem;
|
||||
padding: 0.5rem;
|
||||
margin: 0.5rem 0.5rem 0.5rem 0;
|
||||
border-radius: var(--curve-factor);
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
|
|
@ -309,6 +314,13 @@ export default {
|
|||
color: var(--settings-background);
|
||||
}
|
||||
}
|
||||
|
||||
.settings-toggle svg {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
fill: currentColor;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
@include tablet {
|
||||
|
|
|
|||
Loading…
Reference in a new issue