The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
studio mobile v2 (#32630)
Francesco Sansalvadoreecd181bcd917
diff --git a/apps/studio/components/interfaces/Account/AccessTokenList.tsx b/apps/studio/components/interfaces/Account/AccessTokenList.tsxindex 94216539b89..47ecf3072b8 100644--- a/apps/studio/components/interfaces/Account/AccessTokenList.tsx+++ b/apps/studio/components/interfaces/Account/AccessTokenList.tsx@@ -24,7 +24,7 @@ const AccessTokenList = () => {return (<>- <div>+ <div className="overflow-hidden overflow-x-scroll"><Tablehead={[<Table.th key="header-token">Token</Table.th>,diff --git a/apps/studio/components/interfaces/Account/AuditLogs.tsx b/apps/studio/components/interfaces/Account/AuditLogs.tsxindex 85420e473d2..f41e60689ce 100644--- a/apps/studio/components/interfaces/Account/AuditLogs.tsx+++ b/apps/studio/components/interfaces/Account/AuditLogs.tsx@@ -72,7 +72,7 @@ const AuditLogs = () => {return (<><div className="space-y-4 flex flex-col">- <div className="flex items-center justify-between">+ <div className="flex flex-col md:flex-row md:items-center justify-between"><div className="flex items-center space-x-2"><p className="text-xs prose">Filter by</p><FilterPopover@@ -163,104 +163,107 @@ const AuditLogs = () => {<p className="prose text-sm">No audit logs found based on the filters applied</p></div>) : (- <Table- head={[- <Table.th key="action" className="py-2">- Action- </Table.th>,- <Table.th key="target" className="py-2">- Target- </Table.th>,- <Table.th key="date" className="py-2">- <div className="flex items-center space-x-2">- <p>Date</p>+ <div className="overflow-hidden md:overflow-auto overflow-x-scroll">+ <Table+ head={[+ <Table.th key="action" className="py-2">+ Action+ </Table.th>,+ <Table.th key="target" className="py-2">+ Target+ </Table.th>,+ <Table.th key="date" className="py-2">+ <div className="flex items-center space-x-2">+ <p>Date</p>+ <ButtonTooltip+ type="text"+ className="px-1"+ icon={+ dateSortDesc ? (+ <ArrowDown strokeWidth={1.5} size={14} />+ ) : (+ <ArrowUp strokeWidth={1.5} size={14} />+ )+ }+ onClick={() => setDateSortDesc(!dateSortDesc)}+ tooltip={{+ content: {+ side: 'bottom',+ text: dateSortDesc ? 'Sort latest first' : 'Sort earliest first',+ },+ }}+ />+ </div>+ </Table.th>,+ <Table.th key="actions" className="py-2"></Table.th>,+ ]}+ body={+ sortedLogs?.map((log) => {+ const project = projects?.find(+ (project) => project.ref === log.target.metadata.project_ref+ )+ const organization = organizations?.find(+ (org) => org.slug === log.target.metadata.org_slug+ )- <ButtonTooltip- type="text"- className="px-1"- icon={- dateSortDesc ? (- <ArrowDown strokeWidth={1.5} size={14} />- ) : (- <ArrowUp strokeWidth={1.5} size={14} />- )- }- onClick={() => setDateSortDesc(!dateSortDesc)}- tooltip={{- content: {- side: 'bottom',- text: dateSortDesc ? 'Sort latest first' : 'Sort earliest first',- },- }}- />- </div>- </Table.th>,- <Table.th key="actions" className="py-2"></Table.th>,- ]}- body={- sortedLogs?.map((log) => {- const project = projects?.find(- (project) => project.ref === log.target.metadata.project_ref- )- const organization = organizations?.find(- (org) => org.slug === log.target.metadata.org_slug- )+ const hasStatusCode = log.action.metadata[0]?.status !== undefined- const hasStatusCode = log.action.metadata[0]?.status !== undefined-- return (- <Table.tr- key={log.occurred_at}- onClick={() => setSelectedLog(log)}- className="cursor-pointer hover:!bg-alternative transition duration-100"- >- <Table.td className="max-w-[250px]">- <div className="flex items-center space-x-2">- {hasStatusCode && (- <p className="bg-surface-200 rounded px-1 flex items-center justify-center text-xs font-mono border">- {log.action.metadata[0].status}+ return (+ <Table.tr+ key={log.occurred_at}+ onClick={() => setSelectedLog(log)}+ className="cursor-pointer hover:!bg-alternative transition duration-100"+ >+ <Table.td className="max-w-[250px]">+ <div className="flex items-center space-x-2">+ {hasStatusCode && (+ <p className="bg-surface-200 rounded px-1 flex items-center justify-center text-xs font-mono border">+ {log.action.metadata[0].status}+ </p>+ )}+ <p className="truncate" title={log.action.name}>+ {log.action.name}</p>- )}- <p className="truncate" title={log.action.name}>- {log.action.name}+ </div>+ </Table.td>+ <Table.td>+ <p+ className="text-foreground-light max-w-[230px] truncate"+ title={project?.name ?? organization?.name ?? '-'}+ >+ {project?.name+ ? 'Project: '+ : organization?.name+ ? 'Organization: '+ : null}+ {project?.name ?? organization?.name ?? '-'}</p>- </div>- </Table.td>- <Table.td>- <p- className="text-foreground-light max-w-[230px] truncate"- title={project?.name ?? organization?.name ?? '-'}- >- {project?.name- ? 'Project: '- : organization?.name- ? 'Organization: '- : null}- {project?.name ?? organization?.name ?? '-'}- </p>- <p- className="text-foreground-light text-xs mt-0.5 truncate"- title={log.target.metadata.project_ref ?? log.target.metadata.org_slug}- >- {log.target.metadata.project_ref- ? 'Ref: '- : log.target.metadata.org_slug- ? 'Slug: '- : null}- {log.target.metadata.project_ref ?? log.target.metadata.org_slug}- </p>- </Table.td>- <Table.td>- {dayjs(log.occurred_at).format('DD MMM YYYY, HH:mm:ss')}- </Table.td>- <Table.td align="right">- <Button type="default">View details</Button>- </Table.td>- </Table.tr>- )- }) ?? []- }- />+ <p+ className="text-foreground-light text-xs mt-0.5 truncate"+ title={+ log.target.metadata.project_ref ?? log.target.metadata.org_slug+ }+ >+ {log.target.metadata.project_ref+ ? 'Ref: '+ : log.target.metadata.org_slug+ ? 'Slug: '+ : null}+ {log.target.metadata.project_ref ?? log.target.metadata.org_slug}+ </p>+ </Table.td>+ <Table.td>+ {dayjs(log.occurred_at).format('DD MMM YYYY, HH:mm:ss')}+ </Table.td>+ <Table.td align="right">+ <Button type="default">View details</Button>+ </Table.td>+ </Table.tr>+ )+ }) ?? []+ }+ />+ </div>)}</>)}diff --git a/apps/studio/components/interfaces/Account/Preferences/ProfileInformation.tsx b/apps/studio/components/interfaces/Account/Preferences/ProfileInformation.tsxindex 85dfa041e0b..55d88082340 100644--- a/apps/studio/components/interfaces/Account/Preferences/ProfileInformation.tsx+++ b/apps/studio/components/interfaces/Account/Preferences/ProfileInformation.tsx@@ -46,7 +46,7 @@ export const ProfileInformation = ({ profile }: { profile: Profile }) => {return (<><Panel- className="mb-8"+ className="mb-4 md:mb-8"title={<h5>Profile Information</h5>}footer={<FormActions@@ -60,7 +60,7 @@ export const ProfileInformation = ({ profile }: { profile: Profile }) => {<Form_Shadcn_ {...form}><formid={formId}- className="space-y-6 w-full px-8 py-8"+ className="space-y-6 w-full p-4 md:p-8"onSubmit={form.handleSubmit(onSubmit)}><FormField_Shadcn_diff --git a/apps/studio/components/interfaces/Account/Preferences/ThemeSettings.tsx b/apps/studio/components/interfaces/Account/Preferences/ThemeSettings.tsxindex 2e2c83bf341..21c44e24563 100644--- a/apps/studio/components/interfaces/Account/Preferences/ThemeSettings.tsx+++ b/apps/studio/components/interfaces/Account/Preferences/ThemeSettings.tsx@@ -48,7 +48,7 @@ const ThemeSettings = () => {aria-label="Choose a theme"defaultValue={theme}value={theme}- className="flex flex-wrap gap-5"+ className="flex flex-wrap gap-2 md:gap-5">{singleThemes.map((theme: Theme) => (<RadioGroupLargeItem_Shadcn_@@ -74,7 +74,7 @@ const ThemeSettings = () => {<Panel title={<h5 key="panel-title">Appearance</h5>}><Panel.Content className="grid gap-8"><div className="grid grid-cols-12">- <div className="col-span-4 flex flex-col gap-5">+ <div className="col-span-full md:col-span-4 flex flex-col gap-5"><Label_Shadcn_ htmlFor="theme" className="text-light">Theme mode</Label_Shadcn_>@@ -83,7 +83,7 @@ const ThemeSettings = () => {</p></div>- <div className="col-span-8 flex flex-col gap-4">+ <div className="col-span-full md:col-span-8 flex flex-col gap-4"><p className="text-sm text-light">Supabase will use your selected theme</p><SingleThemeSelection /></div>diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsxindex 0d35ca6f79a..9f2f3e5f416 100644--- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx+++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx@@ -205,7 +205,7 @@ const ProviderForm = ({ config, provider }: ProviderFormProps) => {<buttonref={ref}type="button"- className="group flex w-full items-center justify-between rounded py-3 px-6 text-foreground"+ className="group flex w-full items-center justify-between rounded py-3 px-4 text-foreground"><div className="flex items-center gap-3"><ChevronUp@@ -246,8 +246,8 @@ const ProviderForm = ({ config, provider }: ProviderFormProps) => {const noChanges = JSON.stringify(initialValues) === JSON.stringify(values)return (<Collapsible.Content>- <div className="group border-t border-strong bg-surface-100 py-6 px-6 text-foreground">- <div className="mx-auto my-6 max-w-lg space-y-6">+ <div className="group border-t border-strong bg-surface-100 py-6 px-4 md:px-6 text-foreground">+ <div className="mx-auto my-2 md:my-6 max-w-lg space-y-6">{showAlert(provider.title)}{Object.keys(provider.properties).map((x: string) => (<FormFielddiff --git a/apps/studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsx b/apps/studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsxindex 80d6ba89f5d..d7ed428d7cd 100644--- a/apps/studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsx+++ b/apps/studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsx@@ -5,7 +5,13 @@ import { FormHeader } from 'components/ui/Forms/FormHeader'import { FormPanel } from 'components/ui/Forms/FormPanel'import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'import { useAuthConfigQuery } from 'data/auth/auth-config-query'-import { Tabs_Shadcn_, TabsContent_Shadcn_, TabsList_Shadcn_, TabsTrigger_Shadcn_ } from 'ui'+import {+ ScrollArea,+ Tabs_Shadcn_,+ TabsContent_Shadcn_,+ TabsList_Shadcn_,+ TabsTrigger_Shadcn_,+} from 'ui'import { TEMPLATES_SCHEMAS } from '../AuthTemplatesValidation'import EmailRateLimitsAlert from '../EmailRateLimitsAlert'import TemplateEditor from './TemplateEditor'@@ -26,15 +32,13 @@ const EmailTemplates = () => {(!authConfig.SMTP_HOST || !authConfig.SMTP_USER || !authConfig.SMTP_PASS)return (- <div>- <div className="flex justify-between items-center">+ <div className="w-full">+ <div className="w-full flex justify-between items-center"><FormHeadertitle="Email Templates"description="Customize the emails that will be sent out to your users."+ docsUrl="https://supabase.com/docs/guides/auth/auth-email-templates"/>- <div className="mb-6">- <DocsButton href="https://supabase.com/docs/guides/auth/auth-email-templates" />- </div></div>{isError && (<AlertError error={authConfigError} subject="Failed to retrieve auth configuration" />@@ -47,7 +51,7 @@ const EmailTemplates = () => {{isSuccess && (<FormPanel><Tabs_Shadcn_ defaultValue={TEMPLATES_SCHEMAS[0].title.trim().replace(/\s+/g, '-')}>- <TabsList_Shadcn_ className="px-8 pt-2 gap-5">+ <TabsList_Shadcn_ className="px-4 md:px-8 pt-2 gap-5 overflow-x-scroll no-scrollbar">{TEMPLATES_SCHEMAS.map((template) => {return (<TabsTrigger_Shadcn_ value={template.title.trim().replace(/\s+/g, '-')}>@@ -56,13 +60,12 @@ const EmailTemplates = () => {)})}</TabsList_Shadcn_>-{TEMPLATES_SCHEMAS.map((template) => {const panelId = template.title.trim().replace(/\s+/g, '-')return (<TabsContent_Shadcn_ value={panelId} key={panelId}>{builtInSMTP ? (- <div className="mx-8">+ <div className="px-4 md:px-8"><EmailRateLimitsAlert /></div>) : null}diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyName.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyName.tsxindex 3f1a521e1ff..e28c6bb131a 100644--- a/apps/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyName.tsx+++ b/apps/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyName.tsx@@ -8,14 +8,14 @@ interface PolicyNameProps {const PolicyName = ({ name = '', limit = 100, onUpdatePolicyName }: PolicyNameProps) => {return (- <div className="flex space-x-12">- <div className="flex w-1/3 flex-col space-y-2">+ <div className="flex flex-col md:flew-row gap-4 md:gap-12">+ <div className="flex md:w-1/3 flex-col space-y-2"><label className="text-base text-foreground-light" htmlFor="policy-name">Policy name</label><p className="text-sm text-foreground-lighter">A descriptive name for your policy</p></div>- <div className="relative w-2/3">+ <div className="relative md:w-2/3"><Inputid="policy-name"value={name}diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyRoles.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyRoles.tsxindex 9adc294335b..3c9ad8509ff 100644--- a/apps/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyRoles.tsx+++ b/apps/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyRoles.tsx@@ -34,14 +34,14 @@ const PolicyRoles = ({ selectedRoles, onUpdateSelectedRoles }: PolicyRolesProps)})return (- <div className="flex space-x-12">- <div className="flex w-1/3 flex-col space-y-2">+ <div className="flex flex-col md:flew-row gap-4 md:gap-12">+ <div className="flex md:w-1/3 flex-col space-y-2"><label className="text-foreground-light text-base" htmlFor="policy-name">Target roles</label><p className="text-foreground-lighter text-sm">Apply policy to the selected roles</p></div>- <div className="relative w-2/3">+ <div className="relative md:w-2/3">{isLoading && <ShimmeringLoader className="py-4" />}{isError && <AlertError error={error as any} subject="Failed to retrieve database roles" />}{isSuccess && (diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/index.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/index.tsxindex 4ee9c0d21d6..223d54076d2 100644--- a/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/index.tsx+++ b/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/index.tsx@@ -291,7 +291,7 @@ export const PolicyEditorPanel = memo(function ({size={showTools ? 'lg' : 'default'}className={cn('bg-surface-200 p-0 flex flex-row gap-0',- showTools ? '!min-w-[1000px]' : '!min-w-[600px]'+ showTools ? '!min-w-[100vw] lg:!min-w-[1000px]' : '!min-w-[100vw] lg:!min-w-[600px]')}><div className={cn('flex flex-col grow w-full', showTools && 'w-[60%]')}>diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatePreview.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatePreview.tsxindex a1dfa78a20c..4e41b304bb7 100644--- a/apps/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatePreview.tsx+++ b/apps/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatePreview.tsx@@ -9,7 +9,7 @@ interface TemplatePreviewProps {const TemplatePreview = ({ selectedTemplate }: TemplatePreviewProps) => {const { id, templateName, description, statement } = selectedTemplatereturn (- <div className="space-y-8" style={{ width: '70%' }}>+ <div className="space-y-8 md:w-[70%]">{!isEmpty(selectedTemplate) && (<div className="flex h-full flex-col justify-between"><div className="my-5 h-full space-y-6 px-6">diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatesList.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatesList.tsxindex 96612b48403..9e7afbcb273 100644--- a/apps/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatesList.tsx+++ b/apps/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatesList.tsx@@ -16,9 +16,9 @@ const TemplatesList = ({selectedTemplate,setSelectedTemplate = noop,}: TemplatesListProps) => (- <div className="flex flex-col justify-between border-r border-default">+ <div className="flex flex-col justify-between border-r border-default w-full"><div- className="hide-scrollbar divide-border-primary space-y-0 divide-y divide-solid overflow-y-auto"+ className="hide-scrollbar divide-border-primary space-y-0 divide-y divide-solid overflow-y-auto"style={{ maxHeight: '24rem' }}><Menu type="border">diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyTemplates/index.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyTemplates/index.tsxindex 44600f1caff..ec7b80c8b01 100644--- a/apps/studio/components/interfaces/Auth/Policies/PolicyTemplates/index.tsx+++ b/apps/studio/components/interfaces/Auth/Policies/PolicyTemplates/index.tsx@@ -20,7 +20,7 @@ const PolicyTemplates = ({const [selectedTemplate, setSelectedTemplate] = useState<PolicyTemplate>(templates[0])return (<div>- <div className="flex justify-between border-t border-default">+ <div className="flex flex-col md:flex-row justify-between border-t border-default"><TemplatesListtemplatesNote={templatesNote}templates={templates}diff --git a/apps/studio/components/interfaces/Auth/Users/UsersV2.tsx b/apps/studio/components/interfaces/Auth/Users/UsersV2.tsxindex 51dff52526f..ed1533b0bca 100644--- a/apps/studio/components/interfaces/Auth/Users/UsersV2.tsx+++ b/apps/studio/components/interfaces/Auth/Users/UsersV2.tsx@@ -242,7 +242,7 @@ export const UsersV2 = () => {<><div className="h-full flex flex-col"><FormHeader className="py-4 px-6 !mb-0" title="Users" />- <div className="bg-surface-200 py-3 px-6 flex items-center justify-between border-t">+ <div className="bg-surface-200 py-3 px-4 md:px-6 flex flex-col lg:flex-row lg:items-center justify-between gap-2 border-t">{selectedUsers.size > 0 ? (<div className="flex items-center gap-x-2"><Button type="default" icon={<Trash />} onClick={() => setShowDeleteModal(true)}>@@ -258,7 +258,7 @@ export const UsersV2 = () => {</div>) : (<>- <div className="flex items-center gap-x-2">+ <div className="flex flex-wrap items-center gap-2"><Inputsize="tiny"className="w-52 pl-7 bg-transparent"diff --git a/apps/studio/components/interfaces/Connect/Connect.tsx b/apps/studio/components/interfaces/Connect/Connect.tsxindex 1d125531190..138bc59f31b 100644--- a/apps/studio/components/interfaces/Connect/Connect.tsx+++ b/apps/studio/components/interfaces/Connect/Connect.tsx@@ -187,7 +187,7 @@ const Connect = () => {</DialogHeader><Tabs_Shadcn_ defaultValue="direct" onValueChange={(value) => handleConnectionType(value)}>- <TabsList_Shadcn_ className={cn('flex gap-x-4', DIALOG_PADDING_X)}>+ <TabsList_Shadcn_ className={cn('flex overflow-x-scroll gap-x-4', DIALOG_PADDING_X)}>{CONNECTION_TYPES.map((type) => (<TabsTrigger_Shadcn_ key={type.key} value={type.key} className="px-0">{type.label}@@ -224,8 +224,8 @@ const Connect = () => {value={type.key}className={cn(DIALOG_PADDING_X, DIALOG_PADDING_Y, '!mt-0')}>- <div className="flex justify-between">- <div className="flex items-center gap-3">+ <div className="flex flex-col md:flex-row gap-2 justify-between">+ <div className="flex flex-col md:flex-row items-stretch md:items-center gap-2 md:gap-3"><ConnectDropdownstate={selectedParent}updateState={handleParentChange}diff --git a/apps/studio/components/interfaces/Connect/DatabaseConnectionString.tsx b/apps/studio/components/interfaces/Connect/DatabaseConnectionString.tsxindex eaa751b27da..7f5efc15621 100644--- a/apps/studio/components/interfaces/Connect/DatabaseConnectionString.tsx+++ b/apps/studio/components/interfaces/Connect/DatabaseConnectionString.tsx@@ -173,7 +173,12 @@ export const DatabaseConnectionString = () => {return (<div className="flex flex-col">- <div className={cn('flex items-center gap-3', DIALOG_PADDING_X)}>+ <div+ className={cn(+ 'flex flex-col md:flex-row items-stretch md:items-center gap-2 md:gap-3',+ DIALOG_PADDING_X+ )}+ ><div className="flex"><span className="flex items-center text-foreground-lighter px-3 rounded-lg rounded-r-none text-xs border border-button border-r-0">Type@@ -215,7 +220,7 @@ export const DatabaseConnectionString = () => {<div className="flex flex-col divide-y divide-border">{/* // handle non terminal examples */}{hasCodeExamples && (- <div className="grid grid-cols-2 gap-x-20 w-full px-7 py-8">+ <div className="grid grid-cols-2 gap-x-20 w-full px-4 md:px-7 py-8"><div><StepLabel number={++stepNumber} className="mb-4">Install the following@@ -256,11 +261,11 @@ export const DatabaseConnectionString = () => {<div>{hasCodeExamples && (- <div className="px-7 pt-8">+ <div className="px-4 md:px-7 pt-8"><StepLabel number={++stepNumber}>Choose type of connection</StepLabel></div>)}- <div className="divide-y divide-border-muted [&>div]:px-7 [&>div]:py-8">+ <div className="divide-y divide-border-muted [&>div]:px-4 [&>div]:md:px-7 [&>div]:py-8"><ConnectionPanelcontentType={contentType}lang={lang}@@ -354,7 +359,7 @@ export const DatabaseConnectionString = () => {</div></div>{examplePostInstallCommands && (- <div className="grid grid-cols-2 gap-20 w-full px-7 py-10">+ <div className="grid grid-cols-2 gap-20 w-full px-4 md:px-7 py-10"><div><StepLabel number={++stepNumber} className="mb-4">Add the configuration package to read the settingsdiff --git a/apps/studio/components/interfaces/Database/Backups/DatabaseBackupsNav.tsx b/apps/studio/components/interfaces/Database/Backups/DatabaseBackupsNav.tsxindex 5005de5146a..90deb1ac302 100644--- a/apps/studio/components/interfaces/Database/Backups/DatabaseBackupsNav.tsx+++ b/apps/studio/components/interfaces/Database/Backups/DatabaseBackupsNav.tsx@@ -42,7 +42,7 @@ function DatabaseBackupsNav({ active }: Props) {] as constreturn (- <NavMenu>+ <NavMenu className="overflow-hidden overflow-x-auto">{navMenuItems.map((item) =>item.enabled && (diff --git a/apps/studio/components/interfaces/Database/Backups/PITR/pitr-form.tsx b/apps/studio/components/interfaces/Database/Backups/PITR/pitr-form.tsxindex 69207a2e0aa..d661beb01ee 100644--- a/apps/studio/components/interfaces/Database/Backups/PITR/pitr-form.tsx+++ b/apps/studio/components/interfaces/Database/Backups/PITR/pitr-form.tsx@@ -122,7 +122,7 @@ export function PITRForm({</div>}>- <div className="flex justify-between px-10 py-6 space-x-10">+ <div className="flex justify-between px-4 md:px-10 py-6 space-x-10"><div className="w-1/3 space-y-2"><DatePickerinlinediff --git a/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypes.tsx b/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypes.tsxindex b6b7481c3eb..c09796c1e3a 100644--- a/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypes.tsx+++ b/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypes.tsx@@ -60,10 +60,10 @@ const EnumeratedTypes = () => {return (<div className="space-y-4">- <div className="flex items-center justify-between">- <div className="flex items-center gap-x-2">+ <div className="flex flex-col lg:flex-row lg:items-center justify-between gap-2">+ <div className="flex flex-col lg:flex-row lg:items-center gap-2"><SchemaSelector- className="w-[180px]"+ className="w-full lg:w-[180px]"size="tiny"showError={false}selectedSchemaName={selectedSchema}@@ -72,17 +72,21 @@ const EnumeratedTypes = () => {<Inputsize="tiny"value={search}- className="w-52"+ className="w-full lg:w-52"onChange={(e) => setSearch(e.target.value)}placeholder="Search for a type"icon={<Search size={14} />}/></div>- <div className="flex items-center gap-x-2">+ <div className="flex items-center gap-2"><DocsButton href="https://www.postgresql.org/docs/current/datatype-enum.html" />{!isLocked && (- <Button className="ml-auto" type="primary" onClick={() => setShowCreateTypePanel(true)}>+ <Button+ className="ml-auto flex-1"+ type="primary"+ onClick={() => setShowCreateTypePanel(true)}+ >Create type</Button>)}diff --git a/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx b/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsxindex 54f5317c97c..bcbbb48bfe2 100644--- a/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx+++ b/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx@@ -156,7 +156,7 @@ const CreateFunction = ({ func, visible, setVisible }: CreateFunctionProps) => {className={cn(// 'bg-surface-200','p-0 flex flex-row gap-0',- assistantVisible ? '!min-w-[1200px]' : '!min-w-[600px]'+ assistantVisible ? '!min-w-screen lg:!min-w-[1200px]' : '!min-w-screen lg:!min-w-[600px]')}><div className={cn('flex flex-col grow w-full', assistantVisible && 'w-[60%]')}>diff --git a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsxindex 3f6010f3dfd..f06a0d3bade 100644--- a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx+++ b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx@@ -101,10 +101,10 @@ const FunctionsList = ({</div>) : (<div className="w-full space-y-4">- <div className="flex items-center justify-between gap-2 flex-wrap">- <div className="flex items-center gap-x-2">+ <div className="flex flex-col lg:flex-row lg:items-center justify-between gap-2 flex-wrap">+ <div className="flex flex-col lg:flex-row lg:items-center gap-2"><SchemaSelector- className="w-[180px]"+ className="w-full lg:w-[180px]"size="tiny"showError={false}selectedSchemaName={selectedSchema}@@ -120,7 +120,7 @@ const FunctionsList = ({size="tiny"icon={<Search size={14} />}value={filterString}- className="w-52"+ className="w-full lg:w-52"onChange={(e) => setFilterString(e.target.value)}/></div>@@ -131,6 +131,7 @@ const FunctionsList = ({<ButtonTooltipdisabled={!canCreateFunctions}onClick={() => createFunction()}+ className="flex-grow"tooltip={{content: {side: 'bottom',diff --git a/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx b/apps/studio/components/interfaces/Database/Indexes/Indexes.tsxindex 5d4b4b03336..74252769dc9 100644--- a/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx+++ b/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx@@ -109,7 +109,7 @@ const Indexes = () => {)}{isSuccessSchemas && (<SchemaSelector- className="w-[180px]"+ className="w-full lg:w-[180px]"size="tiny"showError={false}selectedSchemaName={selectedSchema}@@ -119,7 +119,7 @@ const Indexes = () => {<Inputsize="tiny"value={search}- className="w-52"+ className="w-full lg:w-52"onChange={(e) => setSearch(e.target.value)}placeholder="Search for an index"icon={<Search size={14} />}@@ -127,7 +127,7 @@ const Indexes = () => {{!isLocked && (<Button- className="ml-auto"+ className="ml-auto flex-grow lg:flex-grow-0"type="primary"onClick={() => setShowCreateIndex(true)}disabled={!isSuccessSchemas}@@ -146,67 +146,69 @@ const Indexes = () => {)}{isSuccessIndexes && (- <Table- head={[- <Table.th key="schema">Schema</Table.th>,- <Table.th key="table">Table</Table.th>,- <Table.th key="name">Name</Table.th>,- <Table.th key="buttons"></Table.th>,- ]}- body={- <>- {sortedIndexes.length === 0 && search.length === 0 && (- <Table.tr>- <Table.td colSpan={4}>- <p className="text-sm text-foreground">No indexes created yet</p>- <p className="text-sm text-foreground-light">- There are no indexes found in the schema "{selectedSchema}"- </p>- </Table.td>- </Table.tr>- )}- {sortedIndexes.length === 0 && search.length > 0 && (- <Table.tr>- <Table.td colSpan={4}>- <p className="text-sm text-foreground">No results found</p>- <p className="text-sm text-foreground-light">- Your search for "{search}" did not return any results- </p>- </Table.td>- </Table.tr>- )}- {indexes.length > 0 &&- indexes.map((index) => (- <Table.tr key={index.name}>- <Table.td>- <p title={index.schema}>{index.schema}</p>+ <div className="w-full overflow-hidden overflow-x-auto">+ <Table+ head={[+ <Table.th key="schema">Schema</Table.th>,+ <Table.th key="table">Table</Table.th>,+ <Table.th key="name">Name</Table.th>,+ <Table.th key="buttons"></Table.th>,+ ]}+ body={+ <>+ {sortedIndexes.length === 0 && search.length === 0 && (+ <Table.tr>+ <Table.td colSpan={4}>+ <p className="text-sm text-foreground">No indexes created yet</p>+ <p className="text-sm text-foreground-light">+ There are no indexes found in the schema "{selectedSchema}"+ </p></Table.td>- <Table.td>- <p title={index.table}>{index.table}</p>- </Table.td>- <Table.td>- <p title={index.name}>{index.name}</p>- </Table.td>- <Table.td>- <div className="flex justify-end items-center space-x-2">- <Button type="default" onClick={() => setSelectedIndex(index)}>- View definition- </Button>- {!isLocked && (- <Button- type="text"- className="px-1"- icon={<Trash />}- onClick={() => setSelectedIndexToDelete(index)}- />- )}- </div>+ </Table.tr>+ )}+ {sortedIndexes.length === 0 && search.length > 0 && (+ <Table.tr>+ <Table.td colSpan={4}>+ <p className="text-sm text-foreground">No results found</p>+ <p className="text-sm text-foreground-light">+ Your search for "{search}" did not return any results+ </p></Table.td></Table.tr>- ))}- </>- }- />+ )}+ {indexes.length > 0 &&+ indexes.map((index) => (+ <Table.tr key={index.name}>+ <Table.td>+ <p title={index.schema}>{index.schema}</p>+ </Table.td>+ <Table.td>+ <p title={index.table}>{index.table}</p>+ </Table.td>+ <Table.td>+ <p title={index.name}>{index.name}</p>+ </Table.td>+ <Table.td>+ <div className="flex justify-end items-center space-x-2">+ <Button type="default" onClick={() => setSelectedIndex(index)}>+ View definition+ </Button>+ {!isLocked && (+ <Button+ type="text"+ className="px-1"+ icon={<Trash />}+ onClick={() => setSelectedIndexToDelete(index)}+ />+ )}+ </div>+ </Table.td>+ </Table.tr>+ ))}+ </>+ }+ />+ </div>)}</div></div>diff --git a/apps/studio/components/interfaces/Database/Migrations/MigrationsEmptyState.tsx b/apps/studio/components/interfaces/Database/Migrations/MigrationsEmptyState.tsxindex 13283812b59..f827dd88ebe 100644--- a/apps/studio/components/interfaces/Database/Migrations/MigrationsEmptyState.tsx+++ b/apps/studio/components/interfaces/Database/Migrations/MigrationsEmptyState.tsx@@ -46,8 +46,8 @@ const MigrationsEmptyState = () => {]return (- <div className="w-full px-12 py-12 bg-no-repeat border rounded bg-studio border-default">- <div className="space-y-8">+ <div className="w-full p-4 md:p-12 bg-no-repeat border rounded bg-studio border-default">+ <div className="space-y-4 md:space-y-8"><div className="space-y-2 w-4/5"><h4 className="text-lg">Database migrations</h4><p className="text-sm text-foreground-light">diff --git a/apps/studio/components/interfaces/Database/Publications/PublicationsList.tsx b/apps/studio/components/interfaces/Database/Publications/PublicationsList.tsxindex ff3fe002a89..a3be0cde9bb 100644--- a/apps/studio/components/interfaces/Database/Publications/PublicationsList.tsx+++ b/apps/studio/components/interfaces/Database/Publications/PublicationsList.tsx@@ -99,60 +99,62 @@ const PublicationsList = ({ onSelectPublication = noop }: PublicationsListProps)</div></div>- <Table- head={[- <Table.th key="header.name">Name</Table.th>,- <Table.th key="header.id">System ID</Table.th>,- <Table.th key="header.insert">Insert</Table.th>,- <Table.th key="header.update">Update</Table.th>,- <Table.th key="header.delete">Delete</Table.th>,- <Table.th key="header.truncate">Truncate</Table.th>,- <Table.th key="header.source" className="text-right">- Source- </Table.th>,- ]}- body={- isLoading- ? Array.from({ length: 5 }).map((_, i) => <PublicationSkeleton key={i} index={i} />)- : publications.map((x) => (- <Table.tr className="border-t" key={x.name}>- <Table.td className="px-4 py-3">{x.name}</Table.td>- <Table.td>{x.id}</Table.td>- {publicationEvents.map((event) => (- <Table.td key={event.key}>- <Toggle- size="tiny"- checked={(x as any)[event.key]}- disabled={!canUpdatePublications}- onChange={() => {- setToggleListenEventValue({- publication: x,- event,- currentStatus: (x as any)[event.key],- })- }}- />+ <div className="w-full overflow-hidden overflow-x-auto">+ <Table+ head={[+ <Table.th key="header.name">Name</Table.th>,+ <Table.th key="header.id">System ID</Table.th>,+ <Table.th key="header.insert">Insert</Table.th>,+ <Table.th key="header.update">Update</Table.th>,+ <Table.th key="header.delete">Delete</Table.th>,+ <Table.th key="header.truncate">Truncate</Table.th>,+ <Table.th key="header.source" className="text-right">+ Source+ </Table.th>,+ ]}+ body={+ isLoading+ ? Array.from({ length: 5 }).map((_, i) => <PublicationSkeleton key={i} index={i} />)+ : publications.map((x) => (+ <Table.tr className="border-t" key={x.name}>+ <Table.td className="px-4 py-3">{x.name}</Table.td>+ <Table.td>{x.id}</Table.td>+ {publicationEvents.map((event) => (+ <Table.td key={event.key}>+ <Toggle+ size="tiny"+ checked={(x as any)[event.key]}+ disabled={!canUpdatePublications}+ onChange={() => {+ setToggleListenEventValue({+ publication: x,+ event,+ currentStatus: (x as any)[event.key],+ })+ }}+ />+ </Table.td>+ ))}+ <Table.td className="px-4 py-3 pr-2">+ <div className="flex justify-end gap-2">+ <Button+ type="default"+ style={{ paddingTop: 3, paddingBottom: 3 }}+ onClick={() => onSelectPublication(x.id)}+ >+ {x.tables == null+ ? 'All tables'+ : `${x.tables.length} ${+ x.tables.length > 1 || x.tables.length == 0 ? 'tables' : 'table'+ }`}+ </Button>+ </div></Table.td>- ))}- <Table.td className="px-4 py-3 pr-2">- <div className="flex justify-end gap-2">- <Button- type="default"- style={{ paddingTop: 3, paddingBottom: 3 }}- onClick={() => onSelectPublication(x.id)}- >- {x.tables == null- ? 'All tables'- : `${x.tables.length} ${- x.tables.length > 1 || x.tables.length == 0 ? 'tables' : 'table'- }`}- </Button>- </div>- </Table.td>- </Table.tr>- ))- }- />+ </Table.tr>+ ))+ }+ />+ </div>{!isLoading && publications.length === 0 && (<NoSearchResultsdiff --git a/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx b/apps/studio/components/interfaces/Database/Roles/RoleRow.tsxindex 48cbcb93836..fb3d666b7a6 100644--- a/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx+++ b/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx@@ -92,7 +92,7 @@ const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps) => {<buttonid="collapsible-trigger"type="button"- className="group flex w-full items-center justify-between rounded py-3 px-6 text-foreground"+ className="group flex w-full items-center justify-between rounded py-3 px-4 md:px-6 text-foreground"onClick={(event: any) => {if (event.target.id === 'collapsible-trigger') setIsExpanded(!isExpanded)}}@@ -155,7 +155,7 @@ const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps) => {</button></Collapsible.Trigger><Collapsible.Content>- <div className="group border-t border-default bg-surface-100 py-6 px-20 text-foreground">+ <div className="group border-t border-default bg-surface-100 py-6 px-5 md:px-20 text-foreground"><div className="py-4 space-y-[9px]">{(Object.keys(ROLE_PERMISSIONS) as (keyof typeof ROLE_PERMISSIONS)[]).map((permission) => (diff --git a/apps/studio/components/interfaces/Database/Roles/RolesList.tsx b/apps/studio/components/interfaces/Database/Roles/RolesList.tsxindex 4b2da2cbc66..1aa7b02ed49 100644--- a/apps/studio/components/interfaces/Database/Roles/RolesList.tsx+++ b/apps/studio/components/interfaces/Database/Roles/RolesList.tsx@@ -174,7 +174,7 @@ const RolesList = () => {<div className="space-y-4"><div>- <div className="bg-surface-100 border border-default px-6 py-3 rounded-t flex items-center space-x-4">+ <div className="bg-surface-100 border border-default px-4 md:px-6 py-3 rounded-t flex items-center space-x-4"><p className="text-sm text-foreground-light">Roles managed by Supabase</p><Badge variant="brand">Protected</Badge></div>@@ -192,7 +192,7 @@ const RolesList = () => {</div><div>- <div className="bg-surface-100 border border-default px-6 py-3 rounded-t">+ <div className="bg-surface-100 border border-default px-4 md:px-6 py-3 rounded-t"><p className="text-sm text-foreground-light">Other database roles</p></div>diff --git a/apps/studio/components/interfaces/Database/Tables/TableList.tsx b/apps/studio/components/interfaces/Database/Tables/TableList.tsxindex 92a5371ad82..2c71859834f 100644--- a/apps/studio/components/interfaces/Database/Tables/TableList.tsx+++ b/apps/studio/components/interfaces/Database/Tables/TableList.tsx@@ -203,88 +203,91 @@ const TableList = ({return (<div className="flex flex-col gap-y-4">- <div className="flex items-center gap-x-2 flex-wrap">- <SchemaSelector- className="w-[180px]"- size="tiny"- showError={false}- selectedSchemaName={selectedSchema}- onSelectSchema={setSelectedSchema}- />- <Popover_Shadcn_>- <PopoverTrigger_Shadcn_ asChild>- <Button- size="tiny"- type={visibleTypes.length !== 5 ? 'default' : 'dashed'}- className="px-1"- icon={<Filter />}- />- </PopoverTrigger_Shadcn_>- <PopoverContent_Shadcn_ className="p-0 w-56" side="bottom" align="center">- <div className="px-3 pt-3 pb-2 flex flex-col gap-y-2">- <p className="text-xs">Show entity types</p>- <div className="flex flex-col">- {Object.entries(ENTITY_TYPE).map(([key, value]) => (- <div key={key} className="group flex items-center justify-between py-0.5">- <div className="flex items-center gap-x-2">- <Checkbox_Shadcn_- id={key}- name={key}- checked={visibleTypes.includes(value)}- onCheckedChange={() => {- if (visibleTypes.includes(value)) {- setVisibleTypes(visibleTypes.filter((y) => y !== value))- } else {- setVisibleTypes(visibleTypes.concat([value]))- }- }}- />- <Label_Shadcn_ htmlFor={key} className="capitalize text-xs">- {key.toLowerCase().replace('_', ' ')}- </Label_Shadcn_>+ <div className="flex flex-col lg:flex-row lg:items-center gap-2 flex-wrap">+ <div className="flex gap-2 items-center">+ <SchemaSelector+ className="flex-grow lg:flex-grow-0 w-[180px]"+ size="tiny"+ showError={false}+ selectedSchemaName={selectedSchema}+ onSelectSchema={setSelectedSchema}+ />+ <Popover_Shadcn_>+ <PopoverTrigger_Shadcn_ asChild>+ <Button+ size="tiny"+ type={visibleTypes.length !== 5 ? 'default' : 'dashed'}+ className="px-1"+ icon={<Filter />}+ />+ </PopoverTrigger_Shadcn_>+ <PopoverContent_Shadcn_ className="p-0 w-56" side="bottom" align="center">+ <div className="px-3 pt-3 pb-2 flex flex-col gap-y-2">+ <p className="text-xs">Show entity types</p>+ <div className="flex flex-col">+ {Object.entries(ENTITY_TYPE).map(([key, value]) => (+ <div key={key} className="group flex items-center justify-between py-0.5">+ <div className="flex items-center gap-x-2">+ <Checkbox_Shadcn_+ id={key}+ name={key}+ checked={visibleTypes.includes(value)}+ onCheckedChange={() => {+ if (visibleTypes.includes(value)) {+ setVisibleTypes(visibleTypes.filter((y) => y !== value))+ } else {+ setVisibleTypes(visibleTypes.concat([value]))+ }+ }}+ />+ <Label_Shadcn_ htmlFor={key} className="capitalize text-xs">+ {key.toLowerCase().replace('_', ' ')}+ </Label_Shadcn_>+ </div>+ <Button+ size="tiny"+ type="default"+ onClick={() => setVisibleTypes([value])}+ className="transition opacity-0 group-hover:opacity-100 h-auto px-1 py-0.5"+ >+ Select only+ </Button></div>- <Button- size="tiny"- type="default"- onClick={() => setVisibleTypes([value])}- className="transition opacity-0 group-hover:opacity-100 h-auto px-1 py-0.5"- >- Select only- </Button>- </div>- ))}+ ))}+ </div></div>- </div>- </PopoverContent_Shadcn_>- </Popover_Shadcn_>-- <Input- size="tiny"- className="w-52"- placeholder="Search for a table"- value={filterString}- onChange={(e) => setFilterString(e.target.value)}- icon={<Search size={12} />}- />+ </PopoverContent_Shadcn_>+ </Popover_Shadcn_>+ </div>+ <div className="flex flex-grow justify-between gap-2 items-center">+ <Input+ size="tiny"+ className="flex-grow lg:flex-grow-0 w-52"+ placeholder="Search for a table"+ value={filterString}+ onChange={(e) => setFilterString(e.target.value)}+ icon={<Search size={12} />}+ />- {!isLocked && (- <ButtonTooltip- className="ml-auto"- icon={<Plus />}- disabled={!canUpdateTables}- onClick={() => onAddTable()}- tooltip={{- content: {- side: 'bottom',- text: !canUpdateTables- ? 'You need additional permissions to create tables'- : undefined,- },- }}- >- New table- </ButtonTooltip>- )}+ {!isLocked && (+ <ButtonTooltip+ className="w-auto ml-auto"+ icon={<Plus />}+ disabled={!canUpdateTables}+ onClick={() => onAddTable()}+ tooltip={{+ content: {+ side: 'bottom',+ text: !canUpdateTables+ ? 'You need additional permissions to create tables'+ : undefined,+ },+ }}+ >+ New table+ </ButtonTooltip>+ )}+ </div></div>{isLocked && <ProtectedSchemaWarning schema={selectedSchema} entity="tables" />}diff --git a/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx b/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsxindex 8f02b21f250..ee6c1608fed 100644--- a/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx+++ b/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx@@ -89,10 +89,10 @@ const TriggersList = ({</div>) : (<div className="space-y-4">- <div className="flex items-center justify-between gap-2 flex-wrap">- <div className="flex items-center gap-x-2">+ <div className="flex flex-col lg:flex-row lg:items-center justify-between gap-2 flex-wrap">+ <div className="flex flex-col lg:flex-row lg:items-center gap-2"><SchemaSelector- className="w-[180px]"+ className="w-full lg:w-[180px]"size="tiny"showError={false}selectedSchemaName={selectedSchema}@@ -103,7 +103,7 @@ const TriggersList = ({size="tiny"icon={<Search size="14" />}value={filterString}- className="w-52"+ className="w-full lg:w-52"onChange={(e) => setFilterString(e.target.value)}/></div>@@ -112,6 +112,7 @@ const TriggersList = ({<ButtonTooltipdisabled={!canCreateTriggers}onClick={() => createTrigger()}+ className="flex-grow"tooltip={{content: {side: 'bottom',@@ -158,30 +159,32 @@ const TriggersList = ({{isLocked && <ProtectedSchemaWarning schema={selectedSchema} entity="triggers" />}- <Table- head={- <>- <Table.th key="name">Name</Table.th>- <Table.th key="table">Table</Table.th>- <Table.th key="function">Function</Table.th>- <Table.th key="events">Events</Table.th>- <Table.th key="orientation">Orientation</Table.th>- <Table.th key="enabled" className="w-20">- Enabled- </Table.th>- <Table.th key="buttons" className="w-1/12"></Table.th>- </>- }- body={- <TriggerList- schema={selectedSchema}- filterString={filterString}- isLocked={isLocked}- editTrigger={editTrigger}- deleteTrigger={deleteTrigger}- />- }- />+ <div className="w-full overflow-hidden overflow-x-auto">+ <Table+ head={+ <>+ <Table.th key="name">Name</Table.th>+ <Table.th key="table">Table</Table.th>+ <Table.th key="function">Function</Table.th>+ <Table.th key="events">Events</Table.th>+ <Table.th key="orientation">Orientation</Table.th>+ <Table.th key="enabled" className="w-20">+ Enabled+ </Table.th>+ <Table.th key="buttons" className="w-1/12"></Table.th>+ </>+ }+ body={+ <TriggerList+ schema={selectedSchema}+ filterString={filterString}+ isLocked={isLocked}+ editTrigger={editTrigger}+ deleteTrigger={deleteTrigger}+ />+ }+ />+ </div></div>)}</>diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsxindex 8b7f43e33e8..704742aeb00 100644--- a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx@@ -57,10 +57,10 @@ const EdgeFunctionSecrets = () => {<NoPermission resourceText="view this project's edge function secrets" />) : (<>- <div className="flex items-center justify-between">+ <div className="flex flex-col md:flex-row md:items-center justify-between gap-2"><Inputsize="small"- className="w-80"+ className="w-full md:w-80"placeholder="Search for a secret"value={searchString}onChange={(e: any) => setSearchString(e.target.value)}diff --git a/apps/studio/components/interfaces/Home/ClientLibrary.tsx b/apps/studio/components/interfaces/Home/ClientLibrary.tsxindex f5ccadf7051..529bd0ff11f 100644--- a/apps/studio/components/interfaces/Home/ClientLibrary.tsx+++ b/apps/studio/components/interfaces/Home/ClientLibrary.tsx@@ -19,16 +19,25 @@ const ClientLibrary = ({altIconName,}: ClientLibraryProps) => {return (- <div className="flex items-start space-x-6">+ <div className="flex items-start md:space-x-6"><imgsrc={`${BASE_PATH}/img/libraries/${altIconName ? `${altIconName}-icon.svg` : `${language.toLowerCase()}-icon.svg`}`}alt={`${language} logo`}width="21"+ className="hidden md:block"/><div className="space-y-4">- <div>+ <div className="flex items-center gap-2">+ <img+ src={`${BASE_PATH}/img/libraries/${+ altIconName ? `${altIconName}-icon.svg` : `${language.toLowerCase()}-icon.svg`+ }`}+ alt={`${language} logo`}+ width="21"+ className="block md:hidden"+ /><h5 className="flex items-center gap-2 text-base text-foreground">{language} {!officialSupport && <Badge variant="brand">Community</Badge>}</h5>@@ -43,7 +52,7 @@ const ClientLibrary = ({)}<a href={gitUrl} target="_blank" rel="noreferrer"><Button icon={<Github />} type="default">- See GitHub+ <span className="hidden md:inline">See</span> GitHub</Button></a></div>diff --git a/apps/studio/components/interfaces/Home/NewProjectPanel/GetStartedHero.tsx b/apps/studio/components/interfaces/Home/NewProjectPanel/GetStartedHero.tsxindex c9469de051f..00f61c59f7b 100644--- a/apps/studio/components/interfaces/Home/NewProjectPanel/GetStartedHero.tsx+++ b/apps/studio/components/interfaces/Home/NewProjectPanel/GetStartedHero.tsx@@ -1,6 +1,6 @@const GetStartedHero = () => {return (- <div className="w-full h-full relative pointer-events-none">+ <div className="w-full max-w-[500px] h-full pb-10 lg:pb-0 relative pointer-events-none"><divclassName={['w-[290px] lg:w-[400px] h-[180px] bg-alternative border border-default',diff --git a/apps/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsx b/apps/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsxindex 2a7d974d274..96bf3c8dc3b 100644--- a/apps/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsx+++ b/apps/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsx@@ -22,7 +22,7 @@ const NewProjectPanel = () => {return (<div className="grid grid-cols-12 gap-4 lg:gap-20"><div className="col-span-12">- <div className="flex flex-col space-y-20">+ <div className="flex flex-col space-y-12 md:space-y-20"><div className="flex h-full flex-col justify-between"><div className="space-y-2"><h3 className="text-xl text-foreground">Welcome to your new project</h3>diff --git a/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx b/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsxindex 46002fece18..d3411fa11d6 100644--- a/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx+++ b/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx@@ -86,7 +86,7 @@ const ProjectList = ({return (<divclassName={cn(- 'bg-surface-100 border border-default px-6 py-4 rounded flex items-center justify-between'+ 'bg-surface-100 border border-default px-4 md:px-6 py-4 rounded flex items-center justify-between')}><div className="space-y-1">@@ -263,7 +263,7 @@ const OrganizationProjects = ({<ShimmeringCard /></ul>) : (- <ul className="mx-auto grid grid-cols-1 gap-4 sm:grid-cols-1 md:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3">+ <ul className="mx-auto grid grid-cols-1 gap-2 md:gap-4 sm:grid-cols-1 md:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3">{isErrorPermissions ? (<div className="col-span-3"><AlertErrordiff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.tsxindex 89da2c34e28..08bb78482d0 100644--- a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.tsx+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.tsx@@ -72,7 +72,7 @@ export const CronjobsTab = () => {return (<>- <div className="w-full space-y-4 p-10">+ <div className="w-full space-y-4 p-4 md:p-10">{(cronJobs ?? []).length == 0 ? (<div className="border rounded border-default px-20 py-16 flex flex-col items-center justify-center space-y-4 border-dashed"><p className="text-sm text-foreground">No cron jobs created yet</p>diff --git a/apps/studio/components/interfaces/Integrations/Integration/BuildBySection.tsx b/apps/studio/components/interfaces/Integrations/Integration/BuildBySection.tsxindex 5cb36d2a21c..f2e84a6f645 100644--- a/apps/studio/components/interfaces/Integrations/Integration/BuildBySection.tsx+++ b/apps/studio/components/interfaces/Integrations/Integration/BuildBySection.tsx@@ -17,7 +17,11 @@ export const BuiltBySection = forwardRef<ElementRef<'div'>, BuiltBySectionProps>if (!name && !docsUrl && !websiteUrl) return nullreturn (- <div ref={ref} className={cn('flex items-center gap-10 px-10', className)} {...props}>+ <div+ ref={ref}+ className={cn('flex flex-wrap items-center gap-8 md:gap-10 px-4 md:px-10', className)}+ {...props}+ >{name && (<div><div className="text-foreground-lighter font-mono text-xs mb-1">BUILT BY</div>diff --git a/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTab.tsx b/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTab.tsxindex d0fff0d5b9d..cd4ce834f2b 100644--- a/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTab.tsx+++ b/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTab.tsx@@ -50,7 +50,7 @@ export const IntegrationOverviewTab = ({<div className="flex flex-col gap-8 py-10"><BuiltBySection integration={integration} />{dependsOnExtension && (- <div className="px-10 max-w-4xl">+ <div className="px-4 md:px-10 max-w-4xl"><AdmonitionshowIcon={false}type="default"diff --git a/apps/studio/components/interfaces/Integrations/Landing/AvailableIntegrations.tsx b/apps/studio/components/interfaces/Integrations/Landing/AvailableIntegrations.tsxindex 2b4ce16f354..0b8c59878a6 100644--- a/apps/studio/components/interfaces/Integrations/Landing/AvailableIntegrations.tsx+++ b/apps/studio/components/interfaces/Integrations/Landing/AvailableIntegrations.tsx@@ -49,7 +49,7 @@ export const AvailableIntegrations = () => {value={selectedCategory}onValueChange={(value) => setSelectedCategory(value as IntegrationCategory)}>- <TabsList_Shadcn_ className="px-10 gap-2 border-b-0 border-t pt-5">+ <TabsList_Shadcn_ className="px-4 md:px-10 gap-2 border-b-0 border-t pt-5">{CATEGORIES.map((category) => (<TabsTrigger_Shadcn_key={category.key}@@ -86,7 +86,7 @@ export const AvailableIntegrations = () => {/></TabsList_Shadcn_></Tabs_Shadcn_>- <div className="p-10 py-8 flex flex-col gap-y-5">+ <div className="p-4 md:p-10 md:py-8 flex flex-col gap-y-5"><div className="grid xl:grid-cols-3 2xl:grid-cols-4 gap-x-4 gap-y-3">{isLoading &&new Array(3)diff --git a/apps/studio/components/interfaces/Integrations/Landing/InstalledIntegrations.tsx b/apps/studio/components/interfaces/Integrations/Landing/InstalledIntegrations.tsxindex 30c3835ef02..c1e4f30d10c 100644--- a/apps/studio/components/interfaces/Integrations/Landing/InstalledIntegrations.tsx+++ b/apps/studio/components/interfaces/Integrations/Landing/InstalledIntegrations.tsx@@ -6,7 +6,7 @@ export const InstalledIntegrations = () => {const { installedIntegrations, error, isLoading, isSuccess, isError } = useInstalledIntegrations()return (- <div className="px-10 py-6 flex flex-col gap-y-5">+ <div className="px-4 md:px-10 py-6 flex flex-col gap-y-5"><h2>Installed integrations</h2><div className="grid xl:grid-cols-3 2xl:grid-cols-4 gap-x-4 gap-y-3">{isLoading &&diff --git a/apps/studio/components/interfaces/Integrations/Queues/QueuesTab.tsx b/apps/studio/components/interfaces/Integrations/Queues/QueuesTab.tsxindex 5cb68eff63c..d3f3b3461fc 100644--- a/apps/studio/components/interfaces/Integrations/Queues/QueuesTab.tsx+++ b/apps/studio/components/interfaces/Integrations/Queues/QueuesTab.tsx@@ -45,7 +45,7 @@ export const QueuesTab = () => {return (<>- <div className="w-full space-y-4 p-10">+ <div className="w-full space-y-4 p-4 md:p-10">{queues.length === 0 ? (<divclassName={diff --git a/apps/studio/components/interfaces/Integrations/Vault/Keys/EncryptionKeysManagement.tsx b/apps/studio/components/interfaces/Integrations/Vault/Keys/EncryptionKeysManagement.tsxindex fb318cb9a8e..3c4ed829a41 100644--- a/apps/studio/components/interfaces/Integrations/Vault/Keys/EncryptionKeysManagement.tsx+++ b/apps/studio/components/interfaces/Integrations/Vault/Keys/EncryptionKeysManagement.tsx@@ -90,11 +90,11 @@ export const EncryptionKeysManagement = () => {return (<>- <div className="space-y-4 p-10">- <div className="flex items-center justify-between">- <div className="flex items-center space-x-2">+ <div className="space-y-4 p-4 md:p-10">+ <div className="flex flex-col md:flex-row md:items-center justify-between gap-2">+ <div className="flex flex-col md:flex-row md:items-center gap-2"><Input- className="w-52 input-clear"+ className="md:w-52 input-clear"size="tiny"placeholder="Search by name or ID"value={searchValue}@@ -115,7 +115,7 @@ export const EncryptionKeysManagement = () => {: []}/>- <div className="w-44">+ <div className="md:w-44"><Listbox size="tiny" value={selectedSort} onChange={setSelectedSort}><Listbox.Optionid="created"diff --git a/apps/studio/components/interfaces/Integrations/Vault/Secrets/SecretsManagement.tsx b/apps/studio/components/interfaces/Integrations/Vault/Secrets/SecretsManagement.tsxindex 6988b6d20d4..c88dd085827 100644--- a/apps/studio/components/interfaces/Integrations/Vault/Secrets/SecretsManagement.tsx+++ b/apps/studio/components/interfaces/Integrations/Vault/Secrets/SecretsManagement.tsx@@ -56,11 +56,11 @@ export const SecretsManagement = () => {return (<>- <div className="space-y-4 p-10">- <div className="flex items-center justify-between">- <div className="flex items-center space-x-2">+ <div className="space-y-4 p-4 md:p-10">+ <div className="flex flex-col md:flex-row md:items-center justify-between gap-2">+ <div className="flex flex-col md:flex-row md:items-center gap-2"><Input- className="w-52"+ className="md:w-52"size="tiny"placeholder="Search by name or key ID"value={searchValue}@@ -81,7 +81,7 @@ export const SecretsManagement = () => {: []}/>- <div className="w-44">+ <div className="md:w-44"><Listbox size="tiny" value={selectedSort} onChange={setSelectedSort}><Listbox.Optionid="updated_at"diff --git a/apps/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx b/apps/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsxindex 8f016a3ff55..3ca3f447120 100644--- a/apps/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx+++ b/apps/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx@@ -150,7 +150,7 @@ const AuditLogs = () => {title="Organization Audit Logs are not available on Free or Pro plans"><WarningIcon />- <div className="flex flex-row pt-1">+ <div className="flex flex-col md:flex-row pt-1 gap-4"><div className="grow"><AlertTitle_Shadcn_>Organization Audit Logs are not available on Free or Pro plansdiff --git a/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsxindex 0a4e467a763..34e0e0131ed 100644--- a/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx+++ b/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx@@ -127,7 +127,7 @@ const CostControl = ({}: CostControlProps) => {</p>)}- <div className="flex space-x-6">+ <div className="flex flex-col md:flex-row gap-6"><div><div className="rounded-md bg-surface-200 w-[160px] h-[96px] shadow"><Imagediff --git a/apps/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx b/apps/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsxindex 65d974dbcff..d256ecfc4f2 100644--- a/apps/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx+++ b/apps/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx@@ -82,7 +82,7 @@ const GeneralSettings = () => {return (<FormPanelfooter={- <div className="flex py-4 px-8">+ <div className="flex p-4 md:px-8"><FormActionsform={formId}isSubmitting={isUpdating}diff --git a/apps/studio/components/interfaces/Organization/IntegrationSettings/IntegrationSettings.tsx b/apps/studio/components/interfaces/Organization/IntegrationSettings/IntegrationSettings.tsxindex 70fa4aff2ee..22786201d4f 100644--- a/apps/studio/components/interfaces/Organization/IntegrationSettings/IntegrationSettings.tsx+++ b/apps/studio/components/interfaces/Organization/IntegrationSettings/IntegrationSettings.tsx@@ -32,7 +32,7 @@ import SidePanelVercelProjectLinker from './SidePanelVercelProjectLinker'const IntegrationImageHandler = ({ title }: { title: 'vercel' | 'github' }) => {return (<img- className="border rounded-lg shadow w-48 mt-6 border-body"+ className="border rounded-lg shadow w-full sm:w-48 mt-6 border-body"src={`${BASE_PATH}/img/integrations/covers/${title}-cover.png`}alt={`${title} cover`}/>diff --git a/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx b/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsxindex baf7142059c..4de9e365ee5 100644--- a/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx+++ b/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx@@ -100,105 +100,107 @@ const InvoicesSettings = () => {<><CurrentPaymentMethod />- <Table- head={[- <Table.th key="header-icon"></Table.th>,- <Table.th key="header-date">Date</Table.th>,- <Table.th key="header-amount">Amount</Table.th>,- <Table.th key="header-invoice">Invoice number</Table.th>,- <Table.th key="header-status" className="flex items-center">- Status- </Table.th>,- <Table.th key="header-download" className="text-right"></Table.th>,- ]}- body={- invoices.length === 0 ? (- <Table.tr>- <Table.td colSpan={6} className="p-3 py-12 text-center">- <p className="text-foreground-light">- {isLoading- ? 'Checking for invoices'- : 'No invoices for this organization yet'}- </p>- </Table.td>- </Table.tr>- ) : (- <>- {invoices.map((x) => {- return (- <Table.tr key={x.id}>- <Table.td>- <FileText size="24" />- </Table.td>- <Table.td>- <p>{dayjs(x.period_end * 1000).format('MMM DD, YYYY')}</p>- </Table.td>- <Table.td>- <p>{formatCurrency(x.amount_due / 100)}</p>- </Table.td>- <Table.td>- <p>{x.number}</p>- </Table.td>- <Table.td>- <InvoiceStatusBadge- status={x.status as InvoiceStatus}- paymentAttempted={x.payment_attempted}- />- </Table.td>- <Table.td className="align-right">- <div className="flex items-center justify-end space-x-2">- {x.amount_due > 0 &&- [- InvoiceStatus.UNCOLLECTIBLE,- InvoiceStatus.OPEN,- InvoiceStatus.ISSUED,- ].includes(x.status as InvoiceStatus) && (- <InvoicePayButton slug={slug} invoiceId={x.id} />- )}-+ <div className="overflow-hidden md:overflow-auto overflow-x-scroll">+ <Table+ head={[+ <Table.th key="header-icon"></Table.th>,+ <Table.th key="header-date">Date</Table.th>,+ <Table.th key="header-amount">Amount</Table.th>,+ <Table.th key="header-invoice">Invoice number</Table.th>,+ <Table.th key="header-status" className="flex items-center">+ Status+ </Table.th>,+ <Table.th key="header-download" className="text-right"></Table.th>,+ ]}+ body={+ invoices.length === 0 ? (+ <Table.tr>+ <Table.td colSpan={6} className="p-3 py-12 text-center">+ <p className="text-foreground-light">+ {isLoading+ ? 'Checking for invoices'+ : 'No invoices for this organization yet'}+ </p>+ </Table.td>+ </Table.tr>+ ) : (+ <>+ {invoices.map((x) => {+ return (+ <Table.tr key={x.id}>+ <Table.td>+ <FileText size="24" />+ </Table.td>+ <Table.td>+ <p>{dayjs(x.period_end * 1000).format('MMM DD, YYYY')}</p>+ </Table.td>+ <Table.td>+ <p>{formatCurrency(x.amount_due / 100)}</p>+ </Table.td>+ <Table.td>+ <p>{x.number}</p>+ </Table.td>+ <Table.td>+ <InvoiceStatusBadge+ status={x.status as InvoiceStatus}+ paymentAttempted={x.payment_attempted}+ />+ </Table.td>+ <Table.td className="align-right">+ <div className="flex items-center justify-end space-x-2">+ {x.amount_due > 0 &&+ [+ InvoiceStatus.UNCOLLECTIBLE,+ InvoiceStatus.OPEN,+ InvoiceStatus.ISSUED,+ ].includes(x.status as InvoiceStatus) && (+ <InvoicePayButton slug={slug} invoiceId={x.id} />+ )}++ <Button+ type="outline"+ icon={<Download size={16} strokeWidth={1.5} />}+ onClick={() => fetchInvoice(x.id)}+ />+ </div>+ </Table.td>+ </Table.tr>+ )+ })}+ <Table.tr key="navigation">+ <Table.td colSpan={6}>+ <div className="flex items-center justify-between">+ <p className="text-sm opacity-50">+ {isErrorCount+ ? 'Failed to retrieve total number of invoices'+ : `Showing ${offset + 1} to ${+ offset + invoices.length+ } out of ${count} invoices`}+ </p>+ <div className="flex items-center space-x-2"><Button- type="outline"- icon={<Download size={16} strokeWidth={1.5} />}- onClick={() => fetchInvoice(x.id)}+ icon={<ChevronLeft />}+ type="default"+ size="tiny"+ disabled={page === 1}+ onClick={async () => setPage(page - 1)}+ />+ <Button+ icon={<ChevronRight />}+ type="default"+ size="tiny"+ disabled={page * PAGE_LIMIT >= (count ?? 0)}+ onClick={async () => setPage(page + 1)}/></div>- </Table.td>- </Table.tr>- )- })}- <Table.tr key="navigation">- <Table.td colSpan={6}>- <div className="flex items-center justify-between">- <p className="text-sm opacity-50">- {isErrorCount- ? 'Failed to retrieve total number of invoices'- : `Showing ${offset + 1} to ${- offset + invoices.length- } out of ${count} invoices`}- </p>- <div className="flex items-center space-x-2">- <Button- icon={<ChevronLeft />}- type="default"- size="tiny"- disabled={page === 1}- onClick={async () => setPage(page - 1)}- />- <Button- icon={<ChevronRight />}- type="default"- size="tiny"- disabled={page * PAGE_LIMIT >= (count ?? 0)}- onClick={async () => setPage(page + 1)}- /></div>- </div>- </Table.td>- </Table.tr>- </>- )- }- />+ </Table.td>+ </Table.tr>+ </>+ )+ }+ />+ </div></>)}</ScaffoldContainerLegacy>diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/OAuthApps.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/OAuthApps.tsxindex 375284c0b9b..a768502df9f 100644--- a/apps/studio/components/interfaces/Organization/OAuthApps/OAuthApps.tsx+++ b/apps/studio/components/interfaces/Organization/OAuthApps/OAuthApps.tsx@@ -71,7 +71,7 @@ const OAuthApps = () => {<><ScaffoldContainerLegacy><div className="space-y-4">- <div className="flex items-center justify-between">+ <div className="flex flex-col md:flex-row items-start md:items-center justify-between gap-2"><div><p>Published Apps</p><p className="text-foreground-light text-sm">diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsxindex b197789ad89..1cb3b71a5eb 100644--- a/apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx+++ b/apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx@@ -192,7 +192,7 @@ export const InviteMemberButton = () => {<TooltipTrigger_Shadcn_ asChild><Buttondisabled={!canInviteMembers}- className="pointer-events-auto"+ className="pointer-events-auto flex-grow md:flex-grow-0"onClick={() => setIsOpen(true)}>Invitediff --git a/apps/studio/components/interfaces/Organization/TeamSettings/MemberRow.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/MemberRow.tsxindex b5c3f5b3be0..8a6991c5425 100644--- a/apps/studio/components/interfaces/Organization/TeamSettings/MemberRow.tsx+++ b/apps/studio/components/interfaces/Organization/TeamSettings/MemberRow.tsx@@ -72,9 +72,9 @@ export const MemberRow = ({ member }: MemberRowProps) => {<Table.tr><Table.td><div className="flex items-center space-x-4">- <div>+ <div className="w-[32px] h-[32px] md:w-[40px] md:h-[40px]">{isInvitedUser || isEmailUser || isFlyUser || hasInvalidImg ? (- <div className="w-[40px] h-[40px] bg-surface-100 border border-overlay rounded-full text-foreground-lighter flex items-center justify-center">+ <div className="w-[32px] h-[32px] md:w-[40px] md:h-[40px] bg-surface-100 border border-overlay rounded-full text-foreground-lighter flex items-center justify-center"><User size={20} strokeWidth={1.5} /></div>) : (@@ -83,7 +83,7 @@ export const MemberRow = ({ member }: MemberRowProps) => {src={`https://github.com/${member.username}.png?size=80`}width="40"height="40"- className="border rounded-full"+ className="border rounded-full w-[32px] h-[32px] md:w-[40px] md:h-[40px]"onError={() => {setHasInvalidImg(true)}}diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/MembersView.tsxindex 0a6e6549056..aeebc0a52a9 100644--- a/apps/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx+++ b/apps/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx@@ -80,7 +80,7 @@ const MembersView = ({ searchString }: MembersViewProps) => {)}{isSuccessMembers && (- <div className="rounded w-full">+ <div className="rounded w-full overflow-hidden overflow-x-scroll"><Loading active={!filteredMembers}><Tablehead={[diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsxindex 4140d5e66af..8bd83885993 100644--- a/apps/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx+++ b/apps/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx@@ -79,18 +79,19 @@ const TeamSettings = () => {<><ScaffoldContainerLegacy><ScaffoldFilterAndContent>- <ScaffoldActionsContainer className="justify-between">+ <ScaffoldActionsContainer className="w-full flex-col md:flex-row gap-2 justify-between"><InputautoComplete="off"icon={<Search size={12} />}size="small"+ className="w-full md:w-auto"value={searchString}onChange={(e: any) => setSearchString(e.target.value)}name="email"id="email"placeholder="Filter members"/>- <ScaffoldActionsGroup>+ <ScaffoldActionsGroup className="w-full md:w-auto">{organizationMembersCreationEnabled &&canAddMembers &&profile !== undefined &&diff --git a/apps/studio/components/interfaces/Organization/Usage/SectionContent.tsx b/apps/studio/components/interfaces/Organization/Usage/SectionContent.tsxindex 6671146d031..ebabba92a80 100644--- a/apps/studio/components/interfaces/Organization/Usage/SectionContent.tsx+++ b/apps/studio/components/interfaces/Organization/Usage/SectionContent.tsx@@ -20,7 +20,7 @@ const SectionContent = ({return (<><ScaffoldContainer>- <div className="mx-auto flex flex-col gap-10 py-16">+ <div className="mx-auto flex flex-col gap-10 py-8 md:py-16"><div className="grid grid-cols-12 gap-6"><div className="col-span-12 lg:col-span-5"><div className="sticky top-32 space-y-6">diff --git a/apps/studio/components/interfaces/Organization/Usage/Usage.tsx b/apps/studio/components/interfaces/Organization/Usage/Usage.tsxindex a89a42fba20..e1d4b715406 100644--- a/apps/studio/components/interfaces/Organization/Usage/Usage.tsx+++ b/apps/studio/components/interfaces/Organization/Usage/Usage.tsx@@ -113,7 +113,7 @@ const Usage = () => {return (<><ScaffoldContainer className="sticky top-0 border-b bg-studio z-10 overflow-hidden">- <div className="py-4 flex items-center space-x-4">+ <div className="py-4 flex flex-col md:flex-row md:items-center gap-4">{isLoadingSubscription && <ShimmeringLoader className="w-[250px]" />}{isErrorSubscription && (@@ -138,7 +138,7 @@ const Usage = () => {<Listboxsize="tiny"name="schema"- className="w-[180px]"+ className="w-full md:w-[180px]"value={selectedProjectRef}onChange={(value: any) => {if (value === 'all-projects') setSelectedProjectRef(undefined)diff --git a/apps/studio/components/interfaces/Settings/Integrations/IntegrationsSettings.tsx b/apps/studio/components/interfaces/Settings/Integrations/IntegrationsSettings.tsxindex 99c16ce761a..a439d2686c8 100644--- a/apps/studio/components/interfaces/Settings/Integrations/IntegrationsSettings.tsx+++ b/apps/studio/components/interfaces/Settings/Integrations/IntegrationsSettings.tsx@@ -12,7 +12,7 @@ import VercelSection from './VercelIntegration/VercelSection'export const IntegrationImageHandler = ({ title }: { title: 'vercel' | 'github' }) => {return (<img- className="border rounded-lg shadow w-48 mt-6 border-body"+ className="border rounded-lg shadow w-full sm:w-48 mt-6 border-body"src={`${BASE_PATH}/img/integrations/covers/${title}-cover.png`}alt={`${title} cover`}/>diff --git a/apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx b/apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsxindex 3144ab4a0c6..54f16390c1d 100644--- a/apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx+++ b/apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx@@ -97,7 +97,7 @@ const LogsQueryPanel = ({return (<div className="border-b bg-surface-100">- <div className="flex w-full items-center justify-between px-5 py-2">+ <div className="flex w-full items-center justify-between px-4 md:px-5 py-2 overflow-x-scroll no-scrollbar"><div className="flex w-full flex-row items-center justify-between gap-x-4"><div className="flex items-center gap-2">{warehouseEnabled && (diff --git a/apps/studio/components/layouts/FunctionsLayout/FunctionsLayout.tsx b/apps/studio/components/layouts/FunctionsLayout/FunctionsLayout.tsxindex bf5b9d1dc36..fe3439d7f69 100644--- a/apps/studio/components/layouts/FunctionsLayout/FunctionsLayout.tsx+++ b/apps/studio/components/layouts/FunctionsLayout/FunctionsLayout.tsx@@ -43,7 +43,7 @@ const FunctionsLayout = ({ title, children }: PropsWithChildren<FunctionsLayoutP<ProjectLayout isLoading={isLoading} title={title || 'Edge Functions'} product="Edge Functions">{centered ? (<>- <div className="mx-auto max-w-5xl py-24 px-5">+ <div className="mx-auto max-w-full md:max-w-5xl py-12 md:py-20 px-4 md:px-5"><divclassName="item-centerflexdiff --git a/apps/studio/components/layouts/Integrations/header.tsx b/apps/studio/components/layouts/Integrations/header.tsxindex b81f358e975..01b47a3e643 100644--- a/apps/studio/components/layouts/Integrations/header.tsx+++ b/apps/studio/components/layouts/Integrations/header.tsx@@ -64,7 +64,7 @@ export const Header = forwardRef<HTMLDivElement, HeaderProps>(({ scroll }, ref)<motion.divlayouttransition={layoutTransition}- className="px-10 flex flex-col gap-5"+ className="px-4 md:px-10 flex flex-col gap-5">{/* Navigation link back to integrations landing */}<div className="flex items-center gap-0.5">diff --git a/apps/studio/components/layouts/Integrations/layout.tsx b/apps/studio/components/layouts/Integrations/layout.tsxindex 35d73345044..e7a14ed257b 100644--- a/apps/studio/components/layouts/Integrations/layout.tsx+++ b/apps/studio/components/layouts/Integrations/layout.tsx@@ -112,7 +112,7 @@ const IntegrationTopHeaderLayout = ({ ...props }: PropsWithChildren) => {<><ProductMenu page={page} menu={generateIntegrationsMenu({ projectRef: project?.ref })} /><Separator />- <div className="p-6">+ <div className="px-4 py-6 md:px-6"><Menu.Grouptitle={<div className="flex flex-col space-y-2 uppercase font-mono">diff --git a/apps/studio/components/layouts/Integrations/tabs.tsx b/apps/studio/components/layouts/Integrations/tabs.tsxindex dbc25a2c3cf..3fc557ca5a5 100644--- a/apps/studio/components/layouts/Integrations/tabs.tsx+++ b/apps/studio/components/layouts/Integrations/tabs.tsx@@ -3,10 +3,10 @@ import { ChevronRight } from 'lucide-react'import Link from 'next/link'import { ComponentProps, ComponentType, useRef } from 'react'-import { useParams } from 'common'+import { useBreakpoint, useParams } from 'common'import { INTEGRATIONS } from 'components/interfaces/Integrations/Landing/Integrations.constants'import { useInstalledIntegrations } from 'components/interfaces/Integrations/Landing/useInstalledIntegrations'-import { NavMenu, NavMenuItem } from 'ui'+import { cn, NavMenu, NavMenuItem } from 'ui'import { useProjectContext } from '../ProjectLayout/ProjectContext'const MotionNavMenu = motion(NavMenu) as ComponentType<ComponentProps<typeof NavMenu> & MotionProps>@@ -26,6 +26,7 @@ export const IntegrationTabs = ({ scroll, isSticky }: IntegrationTabsProps) => {const navRef = useRef(null)const { project } = useProjectContext()const { id, pageId, childId } = useParams()+ const isMobile = useBreakpoint('md')const { installedIntegrations } = useInstalledIntegrations()// Find the integration details based on ID@@ -51,7 +52,7 @@ export const IntegrationTabs = ({ scroll, isSticky }: IntegrationTabsProps) => {<div className="sticky top-[0px] z-[1] bg-dash-sidebar" ref={navRef}><MotionNavMenutransition={{ duration: 0.2 }}- className="px-10 [&_ul]:items-center bg-200"+ className={cn('px-4 md:px-10 [&_ul]:items-center bg-200', isMobile && '!px-4')}aria-label="Integration menu"style={{ paddingLeft: !isSticky ? (navInnerLeftPaddingX as unknown as number) : 40 }}>diff --git a/apps/studio/components/layouts/ProjectLayout/BuildingState.tsx b/apps/studio/components/layouts/ProjectLayout/BuildingState.tsxindex 950386f6134..d0044b2823b 100644--- a/apps/studio/components/layouts/ProjectLayout/BuildingState.tsx+++ b/apps/studio/components/layouts/ProjectLayout/BuildingState.tsx@@ -49,10 +49,10 @@ const BuildingState = () => {if (project === undefined) return nullreturn (- <div className="mx-auto my-16 w-full max-w-7xl items-center justify-center">- <div className="mx-6 flex flex-col space-y-16">- <div className=" flex flex-col gap-4">- <div className="flex items-center space-x-3">+ <div className="mx-auto my-8 md:my-16 w-full md:max-w-7xl items-center justify-center">+ <div className="px-4 md:px-6 flex flex-col space-y-16">+ <div className="w-full flex flex-col gap-4">+ <div className="w-full flex flex-col md:flex-row items-start md:items-center gap-3"><h1 className="text-3xl text-foreground">{project?.name}</h1><Badge variant="default" className="bg-surface-100 bg-opacity-100"><div className="flex items-center gap-2">@@ -74,8 +74,8 @@ const BuildingState = () => {</div></div><div>- <div className=" grid grid-cols-12 gap-12">- <div className="col-span-12 space-y-12 lg:col-span-4">+ <div className="w-full grid grid-cols-12 gap-12">+ <div className="w-full col-span-12 space-y-12 lg:col-span-4"><div><h4 className="text-base text-foreground">While you wait</h4>@@ -133,9 +133,9 @@ const BuildingState = () => {<div className="mx-auto my-16 w-full max-w-7xl space-y-16"><div className="space-y-8"><div className="mx-6">- <h5>Client libraries</h5>+ <h4 className="text-lg">Client libraries</h4></div>- <div className="mx-6 mb-12 grid gap-12 md:grid-cols-3">+ <div className="grid grid-cols-2 gap-x-8 gap-y-8 md:gap-12 mx-6 mb-12 md:grid-cols-3">{CLIENT_LIBRARIES.map((library) => (<ClientLibrary key={library.language} {...library} />))}@@ -145,7 +145,7 @@ const BuildingState = () => {<div className="mx-6"><h5>Example projects</h5></div>- <div className="mx-6 grid gap-8 md:grid-cols-2 lg:grid-cols-3">+ <div className="mx-6 grid gap-2 md:gap-8 md:grid-cols-2 lg:grid-cols-3">{EXAMPLE_PROJECTS.map((project) => (<ExampleProject key={project.url} {...project} />))}diff --git a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsxindex 44dab538acc..bfc7b16741b 100644--- a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx+++ b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx@@ -99,7 +99,7 @@ const LayoutHeader = ({</div>)}<div className="relative flex flex-1 overflow-hidden">- <div className="flex w-full items-center justify-between py-2 pl-1 pr-3 md:px-3 flex-nowrap overflow-x-auto">+ <div className="flex w-full items-center justify-between py-2 pl-1 pr-3 md:px-3 flex-nowrap overflow-x-auto no-scrollbar"><div className="flex items-center text-sm">{projectRef && (<>diff --git a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopoverV2/NotificationsPopover.tsx b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopoverV2/NotificationsPopover.tsxindex 93b3006e9d1..682ea86274b 100644--- a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopoverV2/NotificationsPopover.tsx+++ b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopoverV2/NotificationsPopover.tsx@@ -132,7 +132,11 @@ const NotificationsPopoverV2 = () => {}/></PopoverTrigger_Shadcn_>- <PopoverContent_Shadcn_ className="p-0 w-[450px] overflow-hidden" side="bottom" align="end">+ <PopoverContent_Shadcn_+ className="p-0 w-screen md:w-[450px] overflow-hidden"+ side="bottom"+ align="end"+ ><div className="px-4"><p className="pt-4 pb-1 text-sm">Notifications</p><div className="flex items-center">diff --git a/apps/studio/components/layouts/ProjectLayout/LoadingState.tsx b/apps/studio/components/layouts/ProjectLayout/LoadingState.tsxindex 4c35bd39c07..b0dea6fe505 100644--- a/apps/studio/components/layouts/ProjectLayout/LoadingState.tsx+++ b/apps/studio/components/layouts/ProjectLayout/LoadingState.tsx@@ -39,7 +39,7 @@ export const ProjectUsageLoadingState = () => {return (<div className="space-y-4"><ShimmeringLoader className="w-40 h-7" />- <div className="flex md:gap-4 lg:gap-8">+ <div className="flex flex-col md:flex-row gap-2 md:gap-4 lg:gap-8"><ShimmeringLoader className="w-full h-[304px]" /><ShimmeringLoader className="w-full h-[304px]" /><ShimmeringLoader className="w-full h-[304px]" />diff --git a/apps/studio/components/layouts/ProjectLayout/PausedState/ProjectPausedState.tsx b/apps/studio/components/layouts/ProjectLayout/PausedState/ProjectPausedState.tsxindex 929345207e7..850c080dcc1 100644--- a/apps/studio/components/layouts/ProjectLayout/PausedState/ProjectPausedState.tsx+++ b/apps/studio/components/layouts/ProjectLayout/PausedState/ProjectPausedState.tsx@@ -174,8 +174,8 @@ export const ProjectPausedState = ({ product }: ProjectPausedStateProps) => {return (<><div className="space-y-4">- <div className="w-full mx-auto mb-16 max-w-7xl">- <div className="mx-6 flex h-[500px] items-center justify-center rounded border border-overlay bg-surface-100 p-8">+ <div className="w-full mx-auto mb-8 md:mb-16 max-w-7xl">+ <div className="mx-6 flex md:h-[500px] items-center justify-center rounded border border-overlay bg-surface-100 p-4 md:p-8"><div className="grid w-[550px] gap-4"><div className="mx-auto flex max-w-[300px] items-center justify-center space-x-4 lg:space-x-8"><PauseCircle className="text-foreground-light" size={50} strokeWidth={1.5} />diff --git a/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx b/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsxindex b9f06ebbed7..3b476fa40d9 100644--- a/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx+++ b/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx@@ -202,13 +202,13 @@ const ProjectLayout = forwardRef<HTMLDivElement, PropsWithChildren<ProjectLayoutdirection="horizontal"autoSaveId="project-layout-content">- <ResizablePanel id="panel-content" className="w-full md:min-w-[600px]">+ <ResizablePanel id="panel-content" className="w-full lg:min-w-[600px]"><mainclassName="h-full flex flex-col flex-1 w-full overflow-y-auto overflow-x-hidden"ref={ref}>{showPausedState ? (- <div className="mx-auto my-16 w-full h-full max-w-7xl flex items-center">+ <div className="mx-auto my-8 md:my-16 w-full h-full max-w-7xl flex items-center"><div className="w-full"><ProjectPausedState product={product} /></div>@@ -227,8 +227,8 @@ const ProjectLayout = forwardRef<HTMLDivElement, PropsWithChildren<ProjectLayout<ResizablePanelid="panel-assistant"className={cn(- 'bg absolute right-0 top-[48px] bottom-0 xl:relative xl:top-0',- 'min-w-[400px] max-w-[500px]',+ 'bg fixed z-40 md:absolute right-0 top-0 md:top-[48px] bottom-0 xl:relative xl:top-0',+ 'w-screen h-[100dvh] md:h-auto md:w-auto md:min-w-[400px] max-w-[500px]','2xl:min-w-[500px] 2xl:max-w-[600px]')}>diff --git a/apps/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsx b/apps/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsxindex 48139e20e6c..3bb4d42b033 100644--- a/apps/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsx+++ b/apps/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsx@@ -100,7 +100,7 @@ const UpgradingState = () => {</div><div className="space-y-2"><p className="text-center">We ran into an issue while upgrading your project</p>- <p className="mt-4 text-center text-sm text-foreground-light w-[450px] mx-auto">+ <p className="mt-4 text-center text-sm text-foreground-light w-full md:w-[450px] mx-auto">Your project is back online and its data is not affected. Please reach out to usvia our support form for assistance with the upgrade.</p>diff --git a/apps/studio/components/layouts/WizardLayout.tsx b/apps/studio/components/layouts/WizardLayout.tsxindex e70430f653d..8992e5494e3 100644--- a/apps/studio/components/layouts/WizardLayout.tsx+++ b/apps/studio/components/layouts/WizardLayout.tsx@@ -51,10 +51,14 @@ const Header = ({ organization, project }: WizardLayoutProps) => {/></Link><ChevronRight size="18" className="text-foreground-light" strokeWidth={1} />- <p className="text-sm">+ <p className="text-sm hidden md:block">{organization ? `Organization: ${organization.name}` : 'Create an organization'}</p>- <ChevronRight size="18" className="text-foreground-light" strokeWidth={1} />+ <ChevronRight+ size="18"+ className="text-foreground-light hidden md:block"+ strokeWidth={1}+ /><p className={`text-sm ${stepNumber < 1 ? 'text-foreground-light' : ''}`}>{project ? project.name : 'Create a new project'}</p>diff --git a/apps/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.tsx b/apps/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.tsxindex 0fdd2de98df..b695460ab50 100644--- a/apps/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.tsx+++ b/apps/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.tsx@@ -8,8 +8,8 @@ import { deriveAllowedClientLibraryMethods } from '../Storage.utils'const PolicyDefinition = ({ definition = '', onUpdatePolicyDefinition = () => {} }) => {return (- <div className="flex space-x-12">- <div className="flex w-1/3 flex-col space-y-2">+ <div className="flex flex-col md:flex-row gap-4 md:gap-12">+ <div className="flex md:w-1/3 flex-col space-y-2"><label className="text-base text-foreground-light" htmlFor="policy-name">Policy definition</label>@@ -17,7 +17,7 @@ const PolicyDefinition = ({ definition = '', onUpdatePolicyDefinition = () => {}Provide a SQL conditional expression that returns a boolean.</p></div>- <div className="h-56 w-2/3">+ <div className="h-56 md:w-2/3"><SqlEditor defaultValue={definition} onInputChange={onUpdatePolicyDefinition} /></div></div>@@ -27,8 +27,8 @@ const PolicyDefinition = ({ definition = '', onUpdatePolicyDefinition = () => {}const PolicyAllowedOperations = ({ allowedOperations = [], onToggleOperation = () => {} }: any) => {const allowedClientLibraryMethods = deriveAllowedClientLibraryMethods(allowedOperations)return (- <div className="flex justify-between space-x-12">- <div className="flex w-1/3 flex-col space-y-2">+ <div className="flex flex-col md:flex-row justify-between gap-4 md:gap-12">+ <div className="flex md:w-1/3 flex-col space-y-2"><label className="text-base text-foreground-light" htmlFor="allowed-operation">Allowed operation</label>@@ -45,8 +45,8 @@ const PolicyAllowedOperations = ({ allowedOperations = [], onToggleOperation = (.</p></div>- <div className="w-2/3">- <div className="flex items-center space-x-8">+ <div className="md:w-2/3">+ <div className="flex flex-wrap items-center gap-x-8 gap-y-4"><Checkboxlabel="SELECT"onChange={() => onToggleOperation('SELECT')}diff --git a/apps/studio/components/ui/AIAssistantPanel/AIAssistant.tsx b/apps/studio/components/ui/AIAssistantPanel/AIAssistant.tsxindex c90229b0f66..d99cd70f9e7 100644--- a/apps/studio/components/ui/AIAssistantPanel/AIAssistant.tsx+++ b/apps/studio/components/ui/AIAssistantPanel/AIAssistant.tsx@@ -508,7 +508,7 @@ export const AIAssistant = ({<AssistantChatFormtextAreaRef={inputRef}className={cn(- 'z-20 [&>textarea]:border-1 [&>textarea]:rounded-md [&>textarea]:!outline-none [&>textarea]:!ring-offset-0 [&>textarea]:!ring-0'+ 'z-20 [&>textarea]:text-base [&>textarea]:md:text-sm [&>textarea]:border-1 [&>textarea]:rounded-md [&>textarea]:!outline-none [&>textarea]:!ring-offset-0 [&>textarea]:!ring-0')}loading={isChatLoading}disabled={!isApiKeySet || disablePrompts || isChatLoading}diff --git a/apps/studio/components/ui/AIAssistantPanel/AIAssistantPanel.tsx b/apps/studio/components/ui/AIAssistantPanel/AIAssistantPanel.tsxindex 0d657513cf4..28989c18b4b 100644--- a/apps/studio/components/ui/AIAssistantPanel/AIAssistantPanel.tsx+++ b/apps/studio/components/ui/AIAssistantPanel/AIAssistantPanel.tsx@@ -25,7 +25,7 @@ export const AIAssistantPanel = () => {<AIAssistantinitialMessages={initialMessages}id={chatId}- className={cn('w-full h-full')}+ className={cn('w-full h-[100dvh] md:h-full max-h-[100dvh]')}onResetConversation={handleReset}/>)diff --git a/apps/studio/components/ui/CardButton.tsx b/apps/studio/components/ui/CardButton.tsxindex ee56413b87d..81b1ad3b168 100644--- a/apps/studio/components/ui/CardButton.tsx+++ b/apps/studio/components/ui/CardButton.tsx@@ -109,7 +109,7 @@ const CardButton = ({}if (fixedHeight) {- containerClasses = [...containerClasses, 'h-32']+ containerClasses = [...containerClasses, 'md:h-32']}const ImageContainer = ({ children }: { children: React.ReactNode }) => {diff --git a/apps/studio/components/ui/Forms/FormHeader.tsx b/apps/studio/components/ui/Forms/FormHeader.tsxindex 8e7aa444874..c4bb47c22ee 100644--- a/apps/studio/components/ui/Forms/FormHeader.tsx+++ b/apps/studio/components/ui/Forms/FormHeader.tsx@@ -16,12 +16,16 @@ const FormHeader = ({className?: string}) => {return (- <div className={cn(`mb-6 flex items-center justify-between gap-x-4 ${className}`)}>+ <div+ className={cn(+ `w-full mb-6 flex flex-col sm:flex-row md:items-center justify-between gap-4 ${className}`+ )}+ ><div className="space-y-1"><h3 className="text-foreground text-xl prose">{title}</h3>{description && <div className="prose text-sm max-w-full">{description}</div>}</div>- <div className="flex items-center gap-x-2">+ <div className="flex flex-col sm:flex-row md:items-center gap-x-2">{docsUrl !== undefined && <DocsButton href={docsUrl} />}{actions}</div>diff --git a/apps/studio/components/ui/Forms/FormPanel.tsx b/apps/studio/components/ui/Forms/FormPanel.tsxindex d16420c94b8..37264c3e660 100644--- a/apps/studio/components/ui/Forms/FormPanel.tsx+++ b/apps/studio/components/ui/Forms/FormPanel.tsx@@ -24,7 +24,10 @@ const FormPanelContainer = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElem<divref={ref}{...props}- className={cn('bg-surface-100 border overflow-hidden rounded-md shadow', props.className)}+ className={cn(+ 'bg-surface-100 border overflow-hidden rounded-md shadow max-w-full',+ props.className+ )}>{children}</div>diff --git a/apps/studio/components/ui/Forms/FormSection.tsx b/apps/studio/components/ui/Forms/FormSection.tsxindex b4908e38159..c5b9881ffe3 100644--- a/apps/studio/components/ui/Forms/FormSection.tsx+++ b/apps/studio/components/ui/Forms/FormSection.tsx@@ -15,7 +15,7 @@ const FormSection = ({className?: string}) => {const classes = [- 'grid grid-cols-12 gap-6 px-8 py-8',+ 'grid grid-cols-12 gap-6 px-4 md:px-8 py-4 md:py-8',`${disabled ? ' opacity-30' : ' opacity-100'}`,`${className}`,]diff --git a/apps/studio/components/ui/Forms/FormsContainer.tsx b/apps/studio/components/ui/Forms/FormsContainer.tsxindex f7764c5f3a5..8ba379ca248 100644--- a/apps/studio/components/ui/Forms/FormsContainer.tsx+++ b/apps/studio/components/ui/Forms/FormsContainer.tsx@@ -2,9 +2,11 @@ import { cn } from 'ui'function FormsContainer(props: { children: React.ReactNode; header?: string; className?: string }) {return (- <div className={cn('mx-auto max-w-4xl px-5 pt-12 pb-20', props.className)}>+ <div+ className={cn('mx-auto max-w-full xl:max-w-4xl px-4 md:px-5 pt-12 pb-20', props.className)}+ >{props.header && <h1 className="text-foreground mb-8 text-3xl">{props.header}</h1>}- <div className="space-y-20">{props.children}</div>+ <div className="space-y-12 md:space-y-20">{props.children}</div></div>)}diff --git a/apps/studio/components/ui/GridFooter.tsx b/apps/studio/components/ui/GridFooter.tsxindex 13f64fc1575..7667ca3bd84 100644--- a/apps/studio/components/ui/GridFooter.tsx+++ b/apps/studio/components/ui/GridFooter.tsx@@ -5,7 +5,7 @@ export const GridFooter = ({ children, className }: PropsWithChildren<{ classNamreturn (<divclassName={cn(- 'flex min-h-9 h-9 overflow-hidden items-center px-2 w-full border-t',+ 'flex min-h-9 h-9 overflow-hidden overflow-x-scroll items-center px-2 w-full border-t',className)}>diff --git a/apps/studio/components/ui/Logs/LogsExplorerHeader.tsx b/apps/studio/components/ui/Logs/LogsExplorerHeader.tsxindex 91c04a9d806..86f1bf42846 100644--- a/apps/studio/components/ui/Logs/LogsExplorerHeader.tsx+++ b/apps/studio/components/ui/Logs/LogsExplorerHeader.tsx@@ -24,17 +24,19 @@ const LogsExplorerHeader = ({ subtitle }: LogsExplorerHeaderProps) => {const [showReference, setShowReference] = useState(false)return (- <div className={['flex items-center gap-8 transition-all pb-6 justify-between'].join(' ')}>- <div className="flex items-center gap-3">- <div- className="flex h-6 w-6 items-center justify-center rounded border- border-brand-600 bg-brand-300 text-brand- "- >- <List size={14} strokeWidth={3} />- </div>+ <div className="flex flex-col md:flex-row md:items-center gap-4 md:gap-8 transition-all pb-6 justify-between">+ <div className="flex flex-col md:flex-row md:items-center gap-3">+ <div className="flex flex-row items-center gap-3">+ <div+ className="flex h-6 w-6 items-center justify-center rounded border+ border-brand-600 bg-brand-300 text-brand+ "+ >+ <List size={14} strokeWidth={3} />+ </div>- <h1 className="text-2xl text-foreground">Logs Explorer</h1>+ <h1 className="text-2xl text-foreground">Logs Explorer</h1>+ </div>{subtitle && <span className="text-2xl text-foreground-light">{subtitle}</span>}</div><div className="flex flex-row gap-2">diff --git a/apps/studio/components/ui/Panel.tsx b/apps/studio/components/ui/Panel.tsxindex 028fb3f5ba7..054285d556c 100644--- a/apps/studio/components/ui/Panel.tsx+++ b/apps/studio/components/ui/Panel.tsx@@ -20,14 +20,14 @@ function Panel(props: PropsWithChildren<PanelProps>) {'bg-surface-100','rounded-md border shadow-sm',props.noHideOverflow ? '' : 'overflow-hidden',- props.noMargin ? '' : 'mb-8',+ props.noMargin ? '' : 'mb-4 md:mb-8',props.className)}>{props.title && (<divclassName={cn(- 'bg-surface-100 border-b border-default flex items-center px-6 py-4',+ 'bg-surface-100 border-b border-default flex items-center px-4 md:px-6 py-4',props.titleClasses)}>@@ -37,7 +37,7 @@ function Panel(props: PropsWithChildren<PanelProps>) {{props.children}{props.footer && (<div className="bg-surface-100 border-t border-default">- <div className="flex h-12 items-center px-6">{props.footer}</div>+ <div className="flex h-12 items-center px-4 md:px-6">{props.footer}</div></div>)}</div>@@ -51,7 +51,7 @@ function Panel(props: PropsWithChildren<PanelProps>) {}function Content({ children, className }: { children: ReactNode; className?: string | false }) {- return <div className={cn('px-6 py-4', className)}>{children}</div>+ return <div className={cn('px-4 md:px-6 py-4', className)}>{children}</div>}const PanelNotice = forwardRef<@@ -69,7 +69,7 @@ const PanelNotice = forwardRef<ref={ref}{...props}className={cn(- 'relative px-6 py-5 bg-studio flex flex-col lg:flex-row lg:justify-between gap-6 overflow-hidden lg:items-center',+ 'relative mx-4 md:px-4 md:px-6 py-5 bg-studio flex flex-col lg:flex-row lg:justify-between gap-6 overflow-hidden lg:items-center',className)}>diff --git a/apps/studio/components/ui/UpgradeToPro.tsx b/apps/studio/components/ui/UpgradeToPro.tsxindex 394a5453550..c3b9e00301e 100644--- a/apps/studio/components/ui/UpgradeToPro.tsx+++ b/apps/studio/components/ui/UpgradeToPro.tsx@@ -47,7 +47,7 @@ const UpgradeToPro = ({><div className="flex gap-x-3">{icon && <div className="mt-1">{icon}</div>}- <div className="flex w-full items-center justify-between gap-x-32">+ <div className="flex flex-col md:flex-row w-full md:items-center justify-between gap-4 md:gap-x-8 xl:gap-x-32"><div className="space-y-1"><p className="text-sm">{primaryText}</p><div>diff --git a/apps/studio/pages/account/security.tsx b/apps/studio/pages/account/security.tsxindex 9af7456b231..17f7fd200c8 100644--- a/apps/studio/pages/account/security.tsx+++ b/apps/studio/pages/account/security.tsx@@ -41,7 +41,7 @@ const Security: NextPageWithLayout = () => {<Collapsible.Trigger asChild><buttontype="button"- className="group flex w-full items-center justify-between rounded py-3 px-6 text-foreground"+ className="group flex w-full items-center justify-between rounded py-3 px-4 md:px-6 text-foreground"><div className="flex flex-row gap-4 items-center py-1"><Smartphone strokeWidth={1.5} />@@ -55,7 +55,7 @@ const Security: NextPageWithLayout = () => {) : null}</button></Collapsible.Trigger>- <Collapsible.Content className="group border-t border-default bg-surface-100 py-6 px-6 text-foreground">+ <Collapsible.Content className="group border-t border-default bg-surface-100 py-6 px-4 md:px-6 text-foreground"><TOTPFactors /></Collapsible.Content></Collapsible>diff --git a/apps/studio/pages/account/tokens.tsx b/apps/studio/pages/account/tokens.tsxindex fcc11e5f448..7c91b9a8cc4 100644--- a/apps/studio/pages/account/tokens.tsx+++ b/apps/studio/pages/account/tokens.tsx@@ -23,15 +23,22 @@ const UserAccessTokens: NextPageWithLayout = () => {const [newToken, setNewToken] = useState<NewAccessToken | undefined>()return (+ // <div className="1xl:px-28 mx-auto flex flex-col px-5 pt-6 pb-14 lg:px-16 xl:px-24 2xl:px-32">+ // <div className="flex flex-col md:flex-row md:items-center justify-between">+ // <div>+ // <FormHeader+ // title="Access Tokens"+ // description="Personal access tokens can be used with our Management API or CLI."+ // /><ScaffoldContainer>- <ScaffoldHeader className="flex flex-row justify-between">+ <ScaffoldHeader className="flex flex-col md:flex-row md:items-center justify-between"><div className="flex flex-col"><ScaffoldTitle>Access Tokens</ScaffoldTitle><ScaffoldDescription>Personal access tokens can be used with our Management API or CLI.</ScaffoldDescription></div>- <div className="flex items-center space-x-4">+ <div className="flex flex-col md:flex-row md:items-center gap-4"><div className="flex items-center space-x-2"><Button asChild type="default" icon={<ExternalLink strokeWidth={1.5} />}><Linkdiff --git a/apps/studio/pages/project/[ref]/auth/policies.tsx b/apps/studio/pages/project/[ref]/auth/policies.tsxindex 948571b3ac5..bf56fbe8f6f 100644--- a/apps/studio/pages/project/[ref]/auth/policies.tsx+++ b/apps/studio/pages/project/[ref]/auth/policies.tsx@@ -108,21 +108,21 @@ const AuthPoliciesPage: NextPageWithLayout = () => {return (<div className="flex flex-col h-full"><div className="mb-4">- <div className="flex items-center justify-between">- <div className="flex items-center space-x-4">- <SchemaSelector- className="w-[180px]"- size="tiny"- showError={false}- selectedSchemaName={schema}- onSelectSchema={(schema) => {- setParams({ ...params, search: undefined, schema })- }}- />+ <div className="w-full flex flex-col lg:flex-row items-center justify-between gap-2">+ <SchemaSelector+ className="w-full lg:w-[180px]"+ size="tiny"+ showError={false}+ selectedSchemaName={schema}+ onSelectSchema={(schema) => {+ setParams({ ...params, search: undefined, schema })+ }}+ />+ <div className="w-full flex-grow flex items-center justify-between gap-2 lg:gap-4"><Inputsize="tiny"placeholder="Filter tables and policies"- className="block w-52 text-sm placeholder-border-muted"+ className="block w-full lg:w-52"value={searchString || ''}onChange={(e) => {const str = e.target.value@@ -130,8 +130,8 @@ const AuthPoliciesPage: NextPageWithLayout = () => {}}icon={<Search size={14} />}/>+ <DocsButton href="https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security" /></div>- <DocsButton href="https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security" /></div></div>diff --git a/apps/studio/pages/project/[ref]/database/indexes.tsx b/apps/studio/pages/project/[ref]/database/indexes.tsxindex 2e1264b5229..78904d4fb72 100644--- a/apps/studio/pages/project/[ref]/database/indexes.tsx+++ b/apps/studio/pages/project/[ref]/database/indexes.tsx@@ -24,7 +24,7 @@ const IndexesPage: NextPageWithLayout = () => {description="Improve query performance against your database"/></ScaffoldSectionContent>- <ScaffoldSectionDetail className="flex items-center justify-end gap-2 flex-wrap">+ <ScaffoldSectionDetail className="flex items-center lg:justify-end gap-2 flex-wrap"><DocsButtonclassName="no-underline"href="https://supabase.com/docs/guides/database/query-optimization"diff --git a/apps/studio/pages/project/[ref]/index.tsx b/apps/studio/pages/project/[ref]/index.tsxindex a14eeb10376..00571b2fd05 100644--- a/apps/studio/pages/project/[ref]/index.tsx+++ b/apps/studio/pages/project/[ref]/index.tsx@@ -49,9 +49,9 @@ const Home: NextPageWithLayout = () => {: 'Welcome to your project'return (- <div className="w-full mx-auto my-16 space-y-16 max-w-7xl">- <div className="flex items-center justify-between mx-6 space-x-6">- <div className="flex flex-row items-center gap-3">+ <div className="w-full mx-auto my-12 md:my-16 space-y-12 md:space-y-16 max-w-7xl">+ <div className="flex flex-col md:flex-row md:items-center justify-between mx-6 gap-6">+ <div className="flex flex-col md:flex-row md:items-center gap-3"><h1 className="text-3xl">{projectName}</h1>{isOrioleDb && (<Tooltip_Shadcn_>@@ -97,7 +97,7 @@ const Home: NextPageWithLayout = () => {<div className="mx-6"><h4 className="text-lg">Client libraries</h4></div>- <div className="grid gap-12 mx-6 mb-12 md:grid-cols-3">+ <div className="grid grid-cols-2 gap-x-8 gap-y-8 md:gap-12 mx-6 mb-12 md:grid-cols-3">{CLIENT_LIBRARIES.map((library) => (<ClientLibrary key={library.language} {...library} />))}@@ -114,7 +114,7 @@ const Home: NextPageWithLayout = () => {<TabsTrigger_Shadcn_ value="mobile">Mobile Framework</TabsTrigger_Shadcn_></TabsList_Shadcn_><TabsContent_Shadcn_ value="app">- <div className="grid gap-8 md:grid-cols-2 lg:grid-cols-3">+ <div className="grid gap-2 md:gap-8 md:grid-cols-2 lg:grid-cols-3">{EXAMPLE_PROJECTS.filter((project) => project.type === 'app').sort((a, b) => a.title.localeCompare(b.title)).map((project) => (@@ -123,7 +123,7 @@ const Home: NextPageWithLayout = () => {</div></TabsContent_Shadcn_><TabsContent_Shadcn_ value="mobile">- <div className="grid gap-8 md:grid-cols-2 lg:grid-cols-3">+ <div className="grid gap-2 md:gap-8 md:grid-cols-2 lg:grid-cols-3">{EXAMPLE_PROJECTS.filter((project) => project.type === 'mobile').sort((a, b) => a.title.localeCompare(b.title)).map((project) => (diff --git a/apps/studio/pages/projects.tsx b/apps/studio/pages/projects.tsxindex 95ae7724f99..c7dcef1f9d4 100644--- a/apps/studio/pages/projects.tsx+++ b/apps/studio/pages/projects.tsx@@ -39,12 +39,12 @@ const ProjectsPage: NextPageWithLayout = () => {return (<>{isError && (- <div className="py-4 px-5">+ <div className="p-4 md:px-5"><AlertError subject="Failed to retrieve organizations" /></div>)}- <div className="p-5">+ <div className="p-4 md:p-5">{IS_PLATFORM && projectCreationEnabled && isSuccess && (<HomePageActionssearch={search}diff --git a/packages/config/tailwind.config.js b/packages/config/tailwind.config.jsindex d0d5df21861..b85850a95e8 100644--- a/packages/config/tailwind.config.js+++ b/packages/config/tailwind.config.js@@ -481,6 +481,15 @@ function motionSafeTransition({ addUtilities, matchUtilities, theme }) {transitionDuration: '1ms',},},+ /* Hide scrollbar for Chrome, Safari and Opera */+ '.no-scrollbar::-webkit-scrollbar': {+ display: 'none',+ },+ /* Hide scrollbar for IE, Edge and Firefox */+ '.no-scrollbar': {+ '-ms-overflow-style': 'none' /* IE and Edge */,+ 'scrollbar-width': 'none' /* Firefox */,+ },})matchUtilities(diff --git a/packages/ui-patterns/AssistantChat/AssistantChatForm.tsx b/packages/ui-patterns/AssistantChat/AssistantChatForm.tsxindex 8c609acd9ef..3dfb9e828a6 100644--- a/packages/ui-patterns/AssistantChat/AssistantChatForm.tsx+++ b/packages/ui-patterns/AssistantChat/AssistantChatForm.tsx@@ -1,5 +1,6 @@'use client'+import { useBreakpoint } from 'common'import { Loader2 } from 'lucide-react'import React, { ChangeEvent, memo, useRef } from 'react'import { ExpandingTextArea } from 'ui'@@ -47,6 +48,7 @@ const AssistantChatFormComponent = React.forwardRef<HTMLFormElement, FormProps>() => {const formRef = useRef<HTMLFormElement>(null)const submitRef = useRef<HTMLButtonElement>(null)+ const isMobile = useBreakpoint('md')/*** This function is used to handle the "Enter" key press@@ -81,7 +83,7 @@ const AssistantChatFormComponent = React.forwardRef<HTMLFormElement, FormProps>()}<ExpandingTextArearef={textAreaRef}- autoFocus+ autoFocus={isMobile}disabled={disabled}className={cn(icon ? 'pl-12' : '', 'text-sm pr-10 rounded-[18px]')}placeholder={placeholder}diff --git a/packages/ui-patterns/form/Layout/FormLayout.tsx b/packages/ui-patterns/form/Layout/FormLayout.tsxindex 2c3c8426f95..08aa389b64d 100644--- a/packages/ui-patterns/form/Layout/FormLayout.tsx+++ b/packages/ui-patterns/form/Layout/FormLayout.tsx@@ -42,7 +42,7 @@ const ContainerVariants = cva('relative grid gap-10', {false: '',},layout: {- horizontal: 'grid grid-cols-12',+ horizontal: 'flex flex-col gap-2 md:gap-0 md:grid md:grid-cols-12',vertical: 'flex flex-col gap-3',flex: 'flex flex-row gap-3','flex-row-reverse': 'flex flex-row gap-3 flex-row-reverse justify-between',diff --git a/packages/ui/src/components/shadcn/ui/command.tsx b/packages/ui/src/components/shadcn/ui/command.tsxindex 7401115fe04..2b2b82b8951 100644--- a/packages/ui/src/components/shadcn/ui/command.tsx+++ b/packages/ui/src/components/shadcn/ui/command.tsx@@ -62,7 +62,7 @@ const CommandInput = React.forwardRef<<CommandPrimitive.Inputref={ref}className={cn(- 'flex h-9 w-full rounded-md bg-transparent py-3 text-xs text outline-none placeholder:text-muted disabled:cursor-not-allowed disabled:opacity-50 border-none focus:ring-0',+ 'flex h-9 w-full rounded-md bg-transparent py-3 md:text-xs text outline-none placeholder:text-muted disabled:cursor-not-allowed disabled:opacity-50 border-none focus:ring-0',className)}{...props}diff --git a/packages/ui/src/components/shadcn/ui/dialog.tsx b/packages/ui/src/components/shadcn/ui/dialog.tsxindex 2fecce3a366..bdd8db2a63d 100644--- a/packages/ui/src/components/shadcn/ui/dialog.tsx+++ b/packages/ui/src/components/shadcn/ui/dialog.tsx@@ -9,10 +9,10 @@ import { VariantProps, cva } from 'class-variance-authority'import { cn } from '../../../lib/utils/cn'export const DIALOG_PADDING_Y_SMALL = 'py-4'-export const DIALOG_PADDING_X_SMALL = 'px-5'+export const DIALOG_PADDING_X_SMALL = 'px-4 md:px-5'export const DIALOG_PADDING_Y = 'py-6'-export const DIALOG_PADDING_X = 'px-7'+export const DIALOG_PADDING_X = 'px-4 md:px-7'const DialogPaddingVariants = cva('', {variants: {@@ -54,7 +54,7 @@ DialogOverlay.displayName = DialogPrimitive.Overlay.displayNameconst DialogContentVariants = cva(cn(- 'relative z-50 w-full border shadow-md dark:shadow-sm',+ 'relative z-50 w-full max-w-screen border shadow-md dark:shadow-sm','data-[state=open]:animate-in data-[state=closed]:animate-out','data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95','data-[state=closed]:slide-out-to-left-[0%] data-[state=closed]:slide-out-to-top-[0%]',@@ -68,10 +68,10 @@ const DialogContentVariants = cva(tiny: `sm:align-middle sm:w-full sm:max-w-xs`,small: `sm:align-middle sm:w-full sm:max-w-sm`,medium: `sm:align-middle sm:w-full sm:max-w-lg`,- large: `sm:align-middle sm:w-full max-w-xl`,- xlarge: `sm:align-middle sm:w-full max-w-3xl`,- xxlarge: `sm:align-middle sm:w-full max-w-6xl`,- xxxlarge: `sm:align-middle sm:w-full max-w-7xl`,+ large: `sm:align-middle sm:w-full md:max-w-xl`,+ xlarge: `sm:align-middle sm:w-full md:max-w-3xl`,+ xxlarge: `sm:align-middle sm:w-full md:max-w-6xl`,+ xxxlarge: `sm:align-middle sm:w-full md:max-w-7xl`,},},defaultVariants: {diff --git a/packages/ui/src/components/shadcn/ui/sheet.tsx b/packages/ui/src/components/shadcn/ui/sheet.tsxindex 52e86a7e248..1da16eb2f13 100644--- a/packages/ui/src/components/shadcn/ui/sheet.tsx+++ b/packages/ui/src/components/shadcn/ui/sheet.tsx@@ -113,22 +113,22 @@ const sheetVariants = cva(classes, {{side: ['right', 'left'],size: 'default',- class: 'w-1/3',+ class: 'lg:w-1/3',},{side: ['right', 'left'],size: 'sm',- class: 'w-1/4',+ class: 'lg:w-1/4',},{side: ['right', 'left'],size: 'lg',- class: 'w-1/2',+ class: 'lg:w-1/2',},{side: ['right', 'left'],size: 'xl',- class: 'w-4/6',+ class: 'lg:w-4/6',},{side: ['right', 'left'],@@ -193,7 +193,7 @@ const SheetFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElemen<divclassName={cn('px-5 py-3 border-t w-full',- 'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2',+ 'flex flex-col-reverse sm:flex-row sm:justify-end gap-2',className)}{...props}diff --git a/packages/ui/src/components/shadcn/ui/text-area.tsx b/packages/ui/src/components/shadcn/ui/text-area.tsxindex 3f24b347fea..3966b409a4e 100644--- a/packages/ui/src/components/shadcn/ui/text-area.tsx+++ b/packages/ui/src/components/shadcn/ui/text-area.tsx@@ -11,7 +11,7 @@ const TextArea = React.forwardRef<HTMLTextAreaElement, TextAreaProps>(return (<textareaclassName={cn(- 'flex min-h-10 w-full rounded-md border border-control bg-control px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-foreground-muted',+ 'flex min-h-10 w-full rounded-md border border-control bg-control px-3 py-2 text-base md:text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-foreground-muted','focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-background-control focus-visible:ring-offset-2 focus-visible:ring-offset-foreground-muted disabled:cursor-not-allowed disabled:opacity-50',...customClasses,classNamediff --git a/packages/ui/src/lib/theme/defaultTheme.ts b/packages/ui/src/lib/theme/defaultTheme.tsindex ffad5f46269..e4caf6b5409 100644--- a/packages/ui/src/lib/theme/defaultTheme.ts+++ b/packages/ui/src/lib/theme/defaultTheme.ts@@ -1223,7 +1223,7 @@ export default {base: `relativebg-dash-sidebar- my-4+ my-4 max-w-screenborder border-overlayrounded-mdshadow-xl@@ -1246,10 +1246,10 @@ export default {tiny: `sm:align-middle sm:w-full sm:max-w-xs`,small: `sm:align-middle sm:w-full sm:max-w-sm`,medium: `sm:align-middle sm:w-full sm:max-w-lg`,- large: `sm:align-middle sm:w-full max-w-xl`,- xlarge: `sm:align-middle sm:w-full max-w-3xl`,- xxlarge: `sm:align-middle sm:w-full max-w-6xl`,- xxxlarge: `sm:align-middle sm:w-full max-w-7xl`,+ large: `sm:align-middle sm:w-full md:max-w-xl`,+ xlarge: `sm:align-middle sm:w-full md:max-w-3xl`,+ xxlarge: `sm:align-middle sm:w-full max-w-screen md:max-w-6xl`,+ xxxlarge: `sm:align-middle sm:w-full md:max-w-7xl`,},overlay: `z-40