Faided disabled services https://github.com/libredirect/browser_extension/issues/961
This commit is contained in:
parent
7ed399d6b4
commit
ef9b247a91
|
@ -50,11 +50,11 @@
|
||||||
}),
|
}),
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<div class="slot" slot="item" let:item>
|
<div class={"slot " + (!_options[item.value].enabled && "disabled")} slot="item" let:item>
|
||||||
<ServiceIcon details={item} />
|
<ServiceIcon details={item} />
|
||||||
{item.label}
|
{item.label}
|
||||||
</div>
|
</div>
|
||||||
<div class="slot" slot="selection" let:selection>
|
<div class={"slot " + (!_options[selection.value].enabled && "disabled")} slot="selection" let:selection>
|
||||||
<ServiceIcon details={selection} />
|
<ServiceIcon details={selection} />
|
||||||
{selection.label}
|
{selection.label}
|
||||||
</div>
|
</div>
|
||||||
|
@ -181,10 +181,10 @@
|
||||||
--width: 210px;
|
--width: 210px;
|
||||||
--background: var(--bg-secondary);
|
--background: var(--bg-secondary);
|
||||||
--list-background: var(--bg-secondary);
|
--list-background: var(--bg-secondary);
|
||||||
--item-active-background: red;
|
|
||||||
--item-is-active-bg: grey;
|
--item-is-active-bg: grey;
|
||||||
--item-hover-bg: grey;
|
--item-hover-bg: grey;
|
||||||
--item-is-active-color: var(--text);
|
--item-is-active-color: var(--text);
|
||||||
|
--list-max-height: 400px;
|
||||||
--padding: 0 0 0 10px;
|
--padding: 0 0 0 10px;
|
||||||
--item-color: var(--text);
|
--item-color: var(--text);
|
||||||
}
|
}
|
||||||
|
@ -201,4 +201,8 @@
|
||||||
width: 26px;
|
width: 26px;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:global(.svelte_select .disabled) {
|
||||||
|
opacity: 0.4;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue