Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix line loading

Jonathan Summers-Muir160ac38219d6
diff --git a/packages/config/ui.config.js b/packages/config/ui.config.js
index 85592daa262..e30eda037b4 100644
--- a/packages/config/ui.config.js
+++ b/packages/config/ui.config.js
@@ -294,6 +294,11 @@ const uiConfig = {
background:
'linear-gradient(90deg,rgba(0, 0, 0, 0) 0%,rgba(255, 255, 255, 0.65) 50%,rgba(0, 0, 0, 0) 100%)',
},
+ '.line-loading-bg-light': {
+ background: 'rgb(0, 0, 0)',
+ background:
+ 'linear-gradient(90deg,rgba(0, 0, 0, 0) 0%,rgba(33, 33, 33, 0.65) 50%,rgba(0, 0, 0, 0) 100%)',
+ },
".dropdown-content[data-state='open']": {
animation: 'fadeIn 50ms ease-out',
},
diff --git a/packages/ui/src/components/Command/AiCommand.tsx b/packages/ui/src/components/Command/AiCommand.tsx
index 066d94f4d45..9ccc7910a2d 100644
--- a/packages/ui/src/components/Command/AiCommand.tsx
+++ b/packages/ui/src/components/Command/AiCommand.tsx
@@ -245,8 +245,15 @@ const AiCommand = () => {
<>
{prompt.query && (
<div className="flex gap-6 mx-4 [overflow-anchor:none] mb-6">
- <div className="w-7 h-7 bg-scale-900 rounded-full border border-scale-800 flex items-center justify-center text-scale-1200">
- <IconUser strokeWidth={2} size={16} />
+ <div
+ className="
+ w-7 h-7 bg-scale-200 rounded-full border border-scale-400 flex items-center justify-center text-scale-1000 first-letter:
+ ring-scale-200
+ ring-1
+ shadow-sm
+ "
+ >
+ <IconUser strokeWidth={1.5} size={16} />
</div>
<div className="prose text-scale-1000">{prompt.query}</div>
</div>
diff --git a/packages/ui/src/components/Command/LoadingLine.tsx b/packages/ui/src/components/Command/LoadingLine.tsx
index ef044ec888f..6e2c172c579 100644
--- a/packages/ui/src/components/Command/LoadingLine.tsx
+++ b/packages/ui/src/components/Command/LoadingLine.tsx
@@ -8,7 +8,7 @@ export const LoadingLine = ({ loading }: { loading: boolean }) => {
className={cn(
'absolute w-[80px] h-px ml-auto mr-auto left-0 right-0 text-center block top-0',
'transition-all',
- 'line-loading-bg',
+ 'line-loading-bg-light dark:line-loading-bg',
loading && 'animate-line-loading opacity-100',
loading ? 'opacity-100' : 'opacity-0'
)}