summaryrefslogtreecommitdiffhomepage
path: root/packages/app/src/components/settings-keybinds.tsx
diff options
context:
space:
mode:
authorAaron Iker <[email protected]>2026-02-02 01:18:06 +0100
committerGitHub <[email protected]>2026-02-02 01:18:06 +0100
commite445dc07464d75c893756f6e256c1755d9e2285e (patch)
tree8f852ac0200d113f378338305eae3296ba1a695f /packages/app/src/components/settings-keybinds.tsx
parente84d441b823463162cada18e1a8b5383820c695a (diff)
downloadopencode-e445dc07464d75c893756f6e256c1755d9e2285e.tar.gz
opencode-e445dc07464d75c893756f6e256c1755d9e2285e.zip
feat(ui): Smooth fading out on scroll, style fixes (#11683)
Diffstat (limited to 'packages/app/src/components/settings-keybinds.tsx')
-rw-r--r--packages/app/src/components/settings-keybinds.tsx10
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/app/src/components/settings-keybinds.tsx b/packages/app/src/components/settings-keybinds.tsx
index a24db13f5..8655bca34 100644
--- a/packages/app/src/components/settings-keybinds.tsx
+++ b/packages/app/src/components/settings-keybinds.tsx
@@ -5,6 +5,7 @@ import { Icon } from "@opencode-ai/ui/icon"
import { IconButton } from "@opencode-ai/ui/icon-button"
import { TextField } from "@opencode-ai/ui/text-field"
import { showToast } from "@opencode-ai/ui/toast"
+import { ScrollFade } from "@opencode-ai/ui/scroll-fade"
import fuzzysort from "fuzzysort"
import { formatKeybind, parseKeybind, useCommand } from "@/context/command"
import { useLanguage } from "@/context/language"
@@ -352,7 +353,12 @@ export const SettingsKeybinds: Component = () => {
})
return (
- <div 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="flex flex-col gap-4 pt-6 pb-6 max-w-[720px]">
<div class="flex items-center justify-between gap-4">
@@ -430,6 +436,6 @@ export const SettingsKeybinds: Component = () => {
</div>
</Show>
</div>
- </div>
+ </ScrollFade>
)
}