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 Hamilton4b81a9c0704f
diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
index e78772782b2..4e642bbcb8c 100644
--- a/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
@@ -18,8 +18,6 @@ const FeedbackDropdown = () => {
setIsOpen((isOpen) => !isOpen)
}
- let width = window.innerWidth
-
return (
<div ref={clickContainerRef} className="relative inline-block text-left mr-1">
<div>
@@ -28,7 +26,8 @@ const FeedbackDropdown = () => {
type="default"
icon={<IconMessageCircle size={16} strokeWidth={2} />}
>
- {width < 710 ? 'Feedback' : 'Feedback on this page?'}
+ <span className="block md:hidden">Feedback</span>
+ <span className="hidden md:block">Feedback on this page?</span>
</Button>
</div>
<Transition