The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix logs page styling
Joshen Lim9f0b83171baa
diff --git a/studio/components/interfaces/Settings/Logs/LogPanel.tsx b/studio/components/interfaces/Settings/Logs/LogPanel.tsxindex aa15bfefb4f..88e96fcbf7a 100644--- a/studio/components/interfaces/Settings/Logs/LogPanel.tsx+++ b/studio/components/interfaces/Settings/Logs/LogPanel.tsx@@ -96,16 +96,16 @@ const LogPanel: FC<Props> = ({<divclassName={['absolute flex items-center justify-center -top-3 right-3',- 'h-3 w-3 z-50',+ 'h-4 w-4 z-50',].join(' ')}><div className="absolute z-20">- <Typography.Text style={{ fontSize: '0.7rem' }} className="opacity-80">+ <Typography.Text style={{ fontSize: '0.6rem' }} className="opacity-80">{newCount}</Typography.Text></div>- <div className="bg-green-600 rounded-full w-full h-full animate-ping opacity-40"></div>- <div className="absolute z-60 top-0 right-0 bg-green-900 opacity-60 rounded-full w-full h-full "></div>+ <div className="bg-green-800 rounded-full w-full h-full animate-ping opacity-60"></div>+ <div className="absolute z-60 top-0 right-0 bg-green-900 opacity-80 rounded-full w-full h-full"></div></div>)}<IconRefreshCw />@@ -131,7 +131,7 @@ const LogPanel: FC<Props> = ({</Dropdown><div className="flex items-center space-x-2">- <p className="text-sm text-scale-1100">Search logs via query</p>+ <p className="text-xs">Search logs via query</p><Toggle size="tiny" checked={isCustomQuery} onChange={onCustomClick} /></div></div>@@ -188,7 +188,7 @@ const LogPanel: FC<Props> = ({</div>{!isCustomQuery && (<div className="flex items-center space-x-2">- <p className="text-sm text-scale-1100">Show event chart</p>+ <p className="text-xs">Show event chart</p><Toggle size="tiny" checked={isShowingEventChart} onChange={onToggleEventChart} /></div>)}@@ -216,7 +216,7 @@ const LogPanel: FC<Props> = ({/>),- <Button key="go" size="tiny" title="Go" type="secondary" onClick={handleSearch}>+ <Button key="go" size="tiny" title="Go" type="default" onClick={handleSearch}><IconSearch size={16} /></Button>,]}diff --git a/studio/components/interfaces/Settings/Logs/LogTable.tsx b/studio/components/interfaces/Settings/Logs/LogTable.tsxindex 4f61637ed34..9036e383825 100644--- a/studio/components/interfaces/Settings/Logs/LogTable.tsx+++ b/studio/components/interfaces/Settings/Logs/LogTable.tsx@@ -45,7 +45,7 @@ const LogTable = ({ isCustomQuery, data = [] }: Props) => {className={['block whitespace-wrap font-mono',`${hasLogDataFormat && row.id === focusedLog?.id ? 'font-bold' : ''}`,- `${hasLogDataFormat && v === 'timestamp' ? 'text-green-500' : ''}`,+ `${hasLogDataFormat && v === 'timestamp' ? 'text-green-900' : ''}`,].join(' ')}>{value}diff --git a/studio/pages/project/[ref]/settings/logs/[type].tsx b/studio/pages/project/[ref]/settings/logs/[type].tsxindex 720b54ac7b6..53992241394 100644--- a/studio/pages/project/[ref]/settings/logs/[type].tsx+++ b/studio/pages/project/[ref]/settings/logs/[type].tsx@@ -305,15 +305,27 @@ export const LogPage: NextPage = () => {</div>)}<div className="flex flex-col flex-grow relative">- {isValidating && (+ {isValidating ? (<divclassName={[- 'absolute top-0 w-full h-full bg-gray-800 flex items-center justify-center',+ 'absolute top-0 w-full h-full flex items-center justify-center',`${isValidating ? 'bg-opacity-75 z-50' : ''}`,].join(' ')}><IconLoader className="animate-spin" /></div>+ ) : (+ <>+ <LogTable data={logData} isCustomQuery={mode === 'custom'} />+ {/* Footer section of log ui, appears below table */}+ <div className="p-2">+ {!isSelectQuery && (+ <Button onClick={() => setSize(size + 1)} icon={<IconRewind />} type="default">+ Load older+ </Button>+ )}+ </div>+ </>)}{error && (<div className="flex w-full h-full justify-center items-center mx-auto">@@ -335,20 +347,6 @@ export const LogPage: NextPage = () => {</Card></div>)}- <LogTable data={logData} isCustomQuery={mode === 'custom'} />- {/* Footer section of log ui, appears below table */}- <div className="p-2">- {!isSelectQuery && (- <Button- // trigger page increase- onClick={() => setSize(size + 1)}- icon={<IconRewind />}- type="secondary"- >- Load older- </Button>- )}- </div></div></div></SettingsLayout>