From c3fc8c72954706ffdb9c3cd66d97e545325592ce Mon Sep 17 00:00:00 2001 From: Yuki Ito Date: Sat, 13 Apr 2024 16:50:03 +0900 Subject: [PATCH] Make playground responsive layout --- playground/App.tsx | 15 ++++++++------- playground/Playground.module.css | 22 ++++++++++++++++++++++ playground/package-lock.json | 2 +- playground/package.json | 1 + playground/vite-env.d.ts | 1 + 5 files changed, 33 insertions(+), 8 deletions(-) create mode 100644 playground/Playground.module.css create mode 100644 playground/vite-env.d.ts diff --git a/playground/App.tsx b/playground/App.tsx index 8fb82a3..67997c7 100644 --- a/playground/App.tsx +++ b/playground/App.tsx @@ -6,7 +6,6 @@ import { AppShell, Code, Divider, - Flex, Group, Input, ScrollArea, @@ -21,6 +20,7 @@ import '@mantine/core/styles.css'; import { IconBrandGithub, IconMoon, IconSun } from '@tabler/icons-react'; import * as graphql from 'graphql'; import { useState } from "react"; +import classes from './Playground.module.css'; const sampleGqlSchema = ` type Query { @@ -69,7 +69,7 @@ function Playground() { const [gqlSchemaStr, setGqlSchemaStr] = useState(sampleGqlSchema); const [typeName, setTypeName] = useState('Query'); - return + return
- + + - ; +
; } function Result(props: { gqlSchemaInput: string, convertedTypeName: string | undefined }) { @@ -145,9 +146,9 @@ export function App() { padding="lg" > - - GraphQL to JSON Schema Playground - + + GraphQL to JSON Schema Playground +