Skip to content

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

removes graphiql logo

Alaister Youngbdb2caa40173
diff --git a/studio/components/interfaces/GraphQL/GraphiQL.tsx b/studio/components/interfaces/GraphQL/GraphiQL.tsx
index db8b49df907..aec52a8e55b 100644
--- a/studio/components/interfaces/GraphQL/GraphiQL.tsx
+++ b/studio/components/interfaces/GraphQL/GraphiQL.tsx
@@ -37,7 +37,7 @@ import {
import { Fetcher } from '@graphiql/toolkit'
import clsx from 'clsx'
import 'graphiql/graphiql.css'
-import { PropsWithChildren, useEffect, useState } from 'react'
+import { useEffect, useState } from 'react'
import styles from './graphiql.module.css'
export type GraphiQLProps = {
@@ -119,8 +119,6 @@ export const GraphiQLInterface = ({ theme }: GraphiQLInterfaceProps) => {
const [showDialog, setShowDialog] = useState<'settings' | null>(null)
const [clearStorageStatus, setClearStorageStatus] = useState<'success' | 'error' | null>(null)
- const logo = <GraphiQLLogo />
-
const toolbar = (
<>
<ToolbarButton onClick={() => prettify()} label="Prettify query (Shift-Ctrl-P)">
@@ -141,13 +139,6 @@ export const GraphiQLInterface = ({ theme }: GraphiQLInterfaceProps) => {
}
}
- const modifier =
- window.navigator.platform.toLowerCase().indexOf('mac') === 0 ? (
- <code className="graphiql-key">Cmd</code>
- ) : (
- <code className="graphiql-key">Ctrl</code>
- )
-
return (
<div className={clsx('graphiql-container', styles.graphiqlContainer)}>
<div className="graphiql-main">
@@ -196,7 +187,7 @@ export const GraphiQLInterface = ({ theme }: GraphiQLInterfaceProps) => {
</Tabs>
<div className="graphiql-session-header-right">
{editorContext.tabs.length === 1 ? (
- <div className="graphiql-add-tab-wrapper">
+ <div className={clsx('graphiql-add-tab-wrapper', styles.graphiqlAddTabWrapper)}>
<Tooltip label="Add tab">
<UnStyledButton
type="button"
@@ -209,7 +200,6 @@ export const GraphiQLInterface = ({ theme }: GraphiQLInterfaceProps) => {
</Tooltip>
</div>
) : null}
- {logo}
</div>
</div>
<div
@@ -452,26 +442,4 @@ export const GraphiQLInterface = ({ theme }: GraphiQLInterfaceProps) => {
)
}
-// Configure the UI by providing this Component as a child of GraphiQL.
-function GraphiQLLogo<TProps>(props: PropsWithChildren<TProps>) {
- return (
- <div className="graphiql-logo">
- {props.children || (
- <a
- className="graphiql-logo-link"
- href="https://github.com/graphql/graphiql"
- target="_blank"
- rel="noreferrer"
- >
- Graph
- <em>i</em>
- QL
- </a>
- )}
- </div>
- )
-}
-
-GraphiQLLogo.displayName = 'GraphiQLLogo'
-
export default GraphiQL
diff --git a/studio/components/interfaces/GraphQL/graphiql.module.css b/studio/components/interfaces/GraphQL/graphiql.module.css
index dc574beed61..740ec9014bf 100644
--- a/studio/components/interfaces/GraphQL/graphiql.module.css
+++ b/studio/components/interfaces/GraphQL/graphiql.module.css
@@ -15,6 +15,10 @@
margin-top: calc(0px - var(--session-header-height));
}
+.graphiqlAddTabWrapper {
+ padding: var(--px-12);
+}
+
/* Colors */
:global(body.graphiql-dark) .graphiqlContainer {
--color-base: 0, 0%, 11%;