Skip to content

Commit ef9b247

Browse files
committed
Faided disabled services #961
1 parent 7ed399d commit ef9b247

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/pages/options_src/Services/Services.svelte

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@
5050
}),
5151
]}
5252
>
53-
<div class="slot" slot="item" let:item>
53+
<div class={"slot " + (!_options[item.value].enabled && "disabled")} slot="item" let:item>
5454
<ServiceIcon details={item} />
5555
{item.label}
5656
</div>
57-
<div class="slot" slot="selection" let:selection>
57+
<div class={"slot " + (!_options[selection.value].enabled && "disabled")} slot="selection" let:selection>
5858
<ServiceIcon details={selection} />
5959
{selection.label}
6060
</div>
@@ -181,10 +181,10 @@
181181
--width: 210px;
182182
--background: var(--bg-secondary);
183183
--list-background: var(--bg-secondary);
184-
--item-active-background: red;
185184
--item-is-active-bg: grey;
186185
--item-hover-bg: grey;
187186
--item-is-active-color: var(--text);
187+
--list-max-height: 400px;
188188
--padding: 0 0 0 10px;
189189
--item-color: var(--text);
190190
}
@@ -201,4 +201,8 @@
201201
width: 26px;
202202
color: var(--text);
203203
}
204+
205+
:global(.svelte_select .disabled) {
206+
opacity: 0.4;
207+
}
204208
</style>

0 commit comments

Comments
 (0)