Browse Source

add fade gradient to settings panel headers

David Hill 1 month ago
parent
commit
39afc055bf

+ 7 - 1
packages/app/src/components/settings-general.tsx

@@ -37,7 +37,13 @@ export const SettingsGeneral: Component = () => {
 
   return (
     <div class="flex flex-col h-full overflow-y-auto no-scrollbar">
-      <div class="sticky top-0 z-10">
+      <div
+        class="sticky top-0 z-10"
+        style={{
+          background:
+            "linear-gradient(to bottom, var(--surface-raised-stronger-non-alpha) calc(100% - 24px), transparent)",
+        }}
+      >
         <div class="flex flex-col gap-1 p-8 max-w-[720px]">
           <h2 class="text-16-medium text-text-strong">General</h2>
         </div>

+ 7 - 1
packages/app/src/components/settings-keybinds.tsx

@@ -280,7 +280,13 @@ export const SettingsKeybinds: Component = () => {
 
   return (
     <div class="flex flex-col h-full overflow-y-auto no-scrollbar">
-      <div class="sticky top-0 z-10">
+      <div
+        class="sticky top-0 z-10"
+        style={{
+          background:
+            "linear-gradient(to bottom, var(--surface-raised-stronger-non-alpha) calc(100% - 24px), transparent)",
+        }}
+      >
         <div class="flex items-start justify-between gap-4 p-8 max-w-[720px]">
           <div class="flex flex-col gap-1">
             <h2 class="text-16-medium text-text-strong">Keyboard shortcuts</h2>

+ 7 - 1
packages/app/src/components/settings-permissions.tsx

@@ -101,7 +101,13 @@ export const SettingsPermissions: Component = () => {
 
   return (
     <div class="flex flex-col h-full overflow-y-auto no-scrollbar">
-      <div class="sticky top-0 z-10">
+      <div
+        class="sticky top-0 z-10"
+        style={{
+          background:
+            "linear-gradient(to bottom, var(--surface-raised-stronger-non-alpha) calc(100% - 24px), transparent)",
+        }}
+      >
         <div class="flex flex-col gap-1 p-8 max-w-[720px]">
           <h2 class="text-16-medium text-text-strong">Permissions</h2>
           <p class="text-14-regular text-text-weak">Control what tools the server can use by default.</p>