The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Small UI improvements to SQL editor
Joshen Limffc848911ded
diff --git a/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx b/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsxindex e99aa95078a..2ba8e6a3324 100644--- a/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx+++ b/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx@@ -1,4 +1,4 @@-import { Button, Dropdown, IconChevronDown } from 'ui'+import { Button, Dropdown, IconChevronDown, IconClipboard, IconDownload } from 'ui'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import { useStore } from 'hooks'import { copyToClipboard } from 'lib/helpers'@@ -65,8 +65,12 @@ const ResultsDropdown = ({ id }: ResultsDropdownProps) => {align="start"overlay={<>- <Dropdown.Item onClick={onDownloadCSV}>Download CSV</Dropdown.Item>- <Dropdown.Item onClick={onCopyAsMarkdown}>Copy as markdown</Dropdown.Item>+ <Dropdown.Item icon={<IconDownload size="tiny" />} onClick={onDownloadCSV}>+ Download CSV+ </Dropdown.Item>+ <Dropdown.Item icon={<IconClipboard size="tiny" />} onClick={onCopyAsMarkdown}>+ Copy as markdown+ </Dropdown.Item></>}>diff --git a/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx b/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsxindex a0432b88978..c3c92adcbdc 100644--- a/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx+++ b/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx@@ -1,8 +1,9 @@-import { Button } from 'ui'+import { Button, IconCommand, IconCornerDownLeft } from 'ui'import { IS_PLATFORM } from 'lib/constants'import FavoriteButton from './FavoriteButton'import SavingIndicator from './SavingIndicator'import SizeToggleButton from './SizeToggleButton'+import { detectOS } from 'lib/helpers'export type UtilityActionsProps = {id: string@@ -11,6 +12,8 @@ export type UtilityActionsProps = {}const UtilityActions = ({ id, isExecuting = false, executeQuery }: UtilityActionsProps) => {+ const os = detectOS()+return (<><SavingIndicator id={id} />@@ -20,10 +23,20 @@ const UtilityActions = ({ id, isExecuting = false, executeQuery }: UtilityActiononClick={() => executeQuery?.()}disabled={isExecuting}loading={isExecuting}- type="text"+ type="default"size="tiny"shadow={false}className="mx-2"+ iconRight={+ <div className="flex items-center space-x-1">+ {os === 'macos' ? (+ <IconCommand size={10} strokeWidth={1.5} />+ ) : (+ <p className="text-xs text-scale-1100">CTRL</p>+ )}+ <IconCornerDownLeft size={10} strokeWidth={1.5} />+ </div>+ }>RUN</Button>