chore: generate
This commit is contained in:
@@ -61,24 +61,24 @@ export const SettingsGeneral: Component = () => {
|
|||||||
const actions =
|
const actions =
|
||||||
platform.update && platform.restart
|
platform.update && platform.restart
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
label: language.t("toast.update.action.installRestart"),
|
label: language.t("toast.update.action.installRestart"),
|
||||||
onClick: async () => {
|
onClick: async () => {
|
||||||
await platform.update!()
|
await platform.update!()
|
||||||
await platform.restart!()
|
await platform.restart!()
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
{
|
||||||
{
|
label: language.t("toast.update.action.notYet"),
|
||||||
label: language.t("toast.update.action.notYet"),
|
onClick: "dismiss" as const,
|
||||||
onClick: "dismiss" as const,
|
},
|
||||||
},
|
]
|
||||||
]
|
|
||||||
: [
|
: [
|
||||||
{
|
{
|
||||||
label: language.t("toast.update.action.notYet"),
|
label: language.t("toast.update.action.notYet"),
|
||||||
onClick: "dismiss" as const,
|
onClick: "dismiss" as const,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
showToast({
|
showToast({
|
||||||
persistent: true,
|
persistent: true,
|
||||||
@@ -131,7 +131,12 @@ export const SettingsGeneral: Component = () => {
|
|||||||
const soundOptions = [...SOUND_OPTIONS]
|
const soundOptions = [...SOUND_OPTIONS]
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ScrollFade direction="vertical" fadeStartSize={0} fadeEndSize={16} class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10">
|
<ScrollFade
|
||||||
|
direction="vertical"
|
||||||
|
fadeStartSize={0}
|
||||||
|
fadeEndSize={16}
|
||||||
|
class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10"
|
||||||
|
>
|
||||||
<div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-raised-stronger-non-alpha)_calc(100%_-_24px),transparent)]">
|
<div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-raised-stronger-non-alpha)_calc(100%_-_24px),transparent)]">
|
||||||
<div class="flex flex-col gap-1 pt-6 pb-8">
|
<div class="flex flex-col gap-1 pt-6 pb-8">
|
||||||
<h2 class="text-16-medium text-text-strong">{language.t("settings.tab.general")}</h2>
|
<h2 class="text-16-medium text-text-strong">{language.t("settings.tab.general")}</h2>
|
||||||
|
|||||||
@@ -40,7 +40,12 @@ export const SettingsModels: Component = () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ScrollFade direction="vertical" fadeStartSize={0} fadeEndSize={16} class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10">
|
<ScrollFade
|
||||||
|
direction="vertical"
|
||||||
|
fadeStartSize={0}
|
||||||
|
fadeEndSize={16}
|
||||||
|
class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10"
|
||||||
|
>
|
||||||
<div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-raised-stronger-non-alpha)_calc(100%_-_24px),transparent)]">
|
<div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-raised-stronger-non-alpha)_calc(100%_-_24px),transparent)]">
|
||||||
<div class="flex flex-col gap-4 pt-6 pb-6 max-w-[720px]">
|
<div class="flex flex-col gap-4 pt-6 pb-6 max-w-[720px]">
|
||||||
<h2 class="text-16-medium text-text-strong">{language.t("settings.models.title")}</h2>
|
<h2 class="text-16-medium text-text-strong">{language.t("settings.models.title")}</h2>
|
||||||
|
|||||||
@@ -116,7 +116,12 @@ export const SettingsProviders: Component = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ScrollFade direction="vertical" fadeStartSize={0} fadeEndSize={16} class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10">
|
<ScrollFade
|
||||||
|
direction="vertical"
|
||||||
|
fadeStartSize={0}
|
||||||
|
fadeEndSize={16}
|
||||||
|
class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10"
|
||||||
|
>
|
||||||
<div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-raised-stronger-non-alpha)_calc(100%_-_24px),transparent)]">
|
<div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-raised-stronger-non-alpha)_calc(100%_-_24px),transparent)]">
|
||||||
<div class="flex flex-col gap-1 pt-6 pb-8 max-w-[720px]">
|
<div class="flex flex-col gap-1 pt-6 pb-8 max-w-[720px]">
|
||||||
<h2 class="text-16-medium text-text-strong">{language.t("settings.providers.title")}</h2>
|
<h2 class="text-16-medium text-text-strong">{language.t("settings.providers.title")}</h2>
|
||||||
|
|||||||
@@ -268,13 +268,7 @@ export function List<T>(props: ListProps<T> & { ref?: (ref: ListRef) => void })
|
|||||||
{searchAction()}
|
{searchAction()}
|
||||||
</div>
|
</div>
|
||||||
</Show>
|
</Show>
|
||||||
<ScrollFade
|
<ScrollFade ref={setScrollRef} direction="vertical" fadeStartSize={0} fadeEndSize={20} data-slot="list-scroll">
|
||||||
ref={setScrollRef}
|
|
||||||
direction="vertical"
|
|
||||||
fadeStartSize={0}
|
|
||||||
fadeEndSize={20}
|
|
||||||
data-slot="list-scroll"
|
|
||||||
>
|
|
||||||
<Show
|
<Show
|
||||||
when={flat().length > 0 || showAdd()}
|
when={flat().length > 0 || showAdd()}
|
||||||
fallback={
|
fallback={
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { type JSX, onCleanup, splitProps } from "solid-js"
|
import { type JSX, onCleanup, splitProps } from "solid-js"
|
||||||
import { ScrollFade, type ScrollFadeProps } from './scroll-fade'
|
import { ScrollFade, type ScrollFadeProps } from "./scroll-fade"
|
||||||
|
|
||||||
const SCROLL_SPEED = 60
|
const SCROLL_SPEED = 60
|
||||||
const PAUSE_DURATION = 800
|
const PAUSE_DURATION = 800
|
||||||
|
|||||||
Reference in New Issue
Block a user