feat: collapse proxies and provider

This commit is contained in:
Zephyruso 2023-09-02 16:02:32 +08:00
parent b79f10f528
commit 875792432a

View File

@ -63,9 +63,10 @@ export default () => {
return (
<div class="flex flex-col gap-2">
<div>
<h1 class="pb-4 text-lg font-semibold">{t('proxies')}</h1>
<div class="collapse collapse-arrow">
<input type="checkbox" checked />
<h1 class="collapse-title p-2 text-lg font-semibold">{t('proxies')}</h1>
<div class="collapse-content p-0">
<ForTwoLine
subChild={proxies().map((proxy) => {
const title = (
@ -117,11 +118,15 @@ export default () => {
})}
/>
</div>
</div>
<Show when={proxyProviders().length > 0}>
<div>
<h1 class="pb-4 text-lg font-semibold">{t('proxyProviders')}</h1>
<div class="collapse-arrow collapse">
<input type="checkbox" checked />
<h1 class="collapse-title p-2 text-lg font-semibold">
{t('proxyProviders')}
</h1>
<div class="collapse-content p-0">
<ForTwoLine
subChild={proxyProviders().map((proxyProvider) => {
const title = (
@ -188,6 +193,7 @@ export default () => {
})}
/>
</div>
</div>
</Show>
</div>
)