Skip to content

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

fix: support page to be mobile responsive (#20999)

Kevin Seo54f4bd65b148
diff --git a/apps/studio/components/interfaces/Support/SupportForm.tsx b/apps/studio/components/interfaces/Support/SupportForm.tsx
index 003f0d35d90..81258d829c8 100644
--- a/apps/studio/components/interfaces/Support/SupportForm.tsx
+++ b/apps/studio/components/interfaces/Support/SupportForm.tsx
@@ -314,7 +314,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {
}, [isReady])
return (
- <div className="space-y-8 w-[620px]">
+ <div className="space-y-8 max-w-[620px] overflow-hidden">
<div className="px-6">
<h3 className="text-xl">How can we help?</h3>
</div>
@@ -342,7 +342,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {
{values.category !== 'Login_issues' && (
<div className="px-6">
- <div className="grid grid-cols-2 gap-4">
+ <div className="grid sm:grid-cols-2 sm:grid-rows-1 gap-4 grid-cols-1 grid-rows-2">
{isLoadingProjects && (
<div className="space-y-2">
<p className="text-sm prose">Which project is affected?</p>
@@ -504,7 +504,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {
</p>
)}
- <div className="flex items-center space-x-2">
+ <div className="flex flex-col sm:flex-row items-start sm:items-center gap-y-2 sm:gap-x-2">
<Button asChild>
<Link
href={`/org/${values.organizationSlug}/billing?panel=subscriptionPlan`}
diff --git a/apps/studio/pages/project/[ref]/settings/general.tsx b/apps/studio/pages/project/[ref]/settings/general.tsx
index 25f4ebb5d2c..7d15f69fe2b 100644
--- a/apps/studio/pages/project/[ref]/settings/general.tsx
+++ b/apps/studio/pages/project/[ref]/settings/general.tsx
@@ -16,7 +16,7 @@ const ProjectSettings: NextPageWithLayout = () => {
// [Joshen] Opting for larger gap instead of gap-8 as compared to other pages for better grouping of content
return (
- <div className="1xl:px-28 mx-auto flex flex-col gap-10 px-5 py-6 lg:px-16 xl:px-24 2xl:px-32 ">
+ <div className="1xl:px-28 mx-auto flex flex-col gap-10 px-5 py-6 lg:px-16 xl:px-24 2xl:px-32">
<General />
{!isBranch ? (
<>
diff --git a/apps/studio/pages/support/new.tsx b/apps/studio/pages/support/new.tsx
index 1bdc6e20dcd..90ef4691592 100644
--- a/apps/studio/pages/support/new.tsx
+++ b/apps/studio/pages/support/new.tsx
@@ -18,9 +18,9 @@ const SupportPage = () => {
return (
<div className="relative flex overflow-y-auto overflow-x-hidden">
- <div className="mx-auto my-8 max-w-2xl px-4 lg:px-6">
+ <div className="mx-auto my-8 max-w-2xl w-full px-4 lg:px-6">
<div className="space-y-12 py-8">
- <div className="flex justify-between items-center">
+ <div className="flex flex-col sm:flex-row justify-between items-start sm:items-center gap-y-2">
<div className="flex items-center space-x-3">
<SVG src={`${BASE_PATH}/img/supabase-logo.svg`} className="h-4 w-4" />
<h1 className="m-0 text-lg">Supabase support</h1>
@@ -77,7 +77,7 @@ const SupportPage = () => {
</div>
<div
className={[
- 'min-w-full space-y-12 rounded border bg-panel-body-light shadow-md',
+ 'min-w-full w-full space-y-12 rounded border bg-panel-body-light shadow-md',
`${sentCategory === undefined ? 'py-8' : 'pt-8'}`,
'border-default',
].join(' ')}