Skip to content

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

fix: feedback button

Isaiah Hamiltona1eb815d5476
diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
index b7139a6ee0b..c6059de0a62 100644
--- a/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
@@ -18,6 +18,10 @@ const FeedbackDropdown = () => {
setIsOpen((isOpen) => !isOpen)
}
+ let width = window.innerWidth
+ let FeedbackSM = 'Feedback'
+ let feedbackLG = 'Feedback on this page?'
+
return (
<div ref={clickContainerRef} className="relative inline-block text-left mr-1">
<div>
@@ -26,7 +30,7 @@ const FeedbackDropdown = () => {
type="default"
icon={<IconMessageCircle size={16} strokeWidth={2} />}
>
- Feedback on this page?
+ {width < 710 ? FeedbackSM : feedbackLG}
</Button>
</div>
<Transition
diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx
index c2e5fecc408..d43f535c389 100644
--- a/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx
+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx
@@ -50,7 +50,7 @@ const LayoutHeader = ({ customHeaderComponents, breadcrumbs = [], headerBorder =
{/* Additional breadcrumbs are supplied */}
<BreadcrumbsView defaultValue={breadcrumbs} />
</div>
- <div className="flex space-x-2">
+ <div className="flex space-x-1 md:space-x-2">
{customHeaderComponents && customHeaderComponents}
{IS_PLATFORM && <HelpPopover />}
{IS_PLATFORM && <FeedbackDropdown />}