Skip to content

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

scrolling brhaviour

Jonathan Summers-Muir5352969d5205
diff --git a/studio/components/interfaces/BillingV2/Usage/Usage.tsx b/studio/components/interfaces/BillingV2/Usage/Usage.tsx
index 3e095054c96..9efcc274bef 100644
--- a/studio/components/interfaces/BillingV2/Usage/Usage.tsx
+++ b/studio/components/interfaces/BillingV2/Usage/Usage.tsx
@@ -69,25 +69,41 @@ const Usage = () => {
switch (id) {
case 'infra':
if (infrastructureRef.current) {
- infrastructureRef.current.scrollIntoView({ behavior: 'smooth' })
+ infrastructureRef.current.scrollIntoView({
+ behavior: 'smooth',
+ block: 'start', // or 'end' to scroll to the bottom
+ inline: 'start', //
+ })
setActiveTab('infra')
}
break
case 'bandwidth':
if (bandwidthRef.current) {
- bandwidthRef.current.scrollIntoView({ behavior: 'smooth' })
+ bandwidthRef.current.scrollIntoView({
+ behavior: 'smooth',
+ block: 'start', // or 'end' to scroll to the bottom
+ inline: 'start', //
+ })
setActiveTab('bandwidth')
}
break
case 'sizeCount':
if (sizeAndCountsRef.current) {
- sizeAndCountsRef.current.scrollIntoView({ behavior: 'smooth' })
+ sizeAndCountsRef.current.scrollIntoView({
+ behavior: 'smooth',
+ block: 'start', // or 'end' to scroll to the bottom
+ inline: 'start', //
+ })
setActiveTab('sizeCount')
}
break
case 'activity':
if (activityRef.current) {
- activityRef.current.scrollIntoView({ behavior: 'smooth' })
+ activityRef.current.scrollIntoView({
+ behavior: 'smooth',
+ block: 'start', // or 'end' to scroll to the bottom
+ inline: 'start', //
+ })
setActiveTab('activity')
}
break
diff --git a/studio/pages/project/[ref]/settings/billing/subscription.tsx b/studio/pages/project/[ref]/settings/billing/subscription.tsx
index a4708baf92f..898d1b537c8 100644
--- a/studio/pages/project/[ref]/settings/billing/subscription.tsx
+++ b/studio/pages/project/[ref]/settings/billing/subscription.tsx
@@ -18,7 +18,7 @@ const ProjectBilling: NextPageWithLayout = () => {
return (
<div className="relative">
{enableSubscriptionV2 && (
- <div className="absolute top-[1.9rem] right-16 flex items-center space-x-3">
+ <div className="absolute top-[1.9rem] right-16 xl:right-32 flex items-center space-x-3">
<Toggle
size="tiny"
checked={showNewSubscriptionUI}
diff --git a/studio/pages/project/[ref]/settings/billing/usage.tsx b/studio/pages/project/[ref]/settings/billing/usage.tsx
index 5d41670e8e0..7aa11f8ceaf 100644
--- a/studio/pages/project/[ref]/settings/billing/usage.tsx
+++ b/studio/pages/project/[ref]/settings/billing/usage.tsx
@@ -21,7 +21,7 @@ const ProjectBillingUsage: NextPageWithLayout = () => {
return (
<div className="relative">
{enableUsageV2 && (
- <div className="absolute top-[1.9rem] right-16 flex items-center space-x-3">
+ <div className="absolute top-[1.9rem] right-16 xl:right-32 flex items-center space-x-3">
<Toggle
size="tiny"
checked={showNewUsageUI}