瀏覽代碼

ui fixes (#41)

Chris Tate 5 月之前
父節點
當前提交
06235798e1
共有 3 個文件被更改,包括 4 次插入5 次删除
  1. 1 3
      apps/web/app/playground/layout.tsx
  2. 2 1
      apps/web/components/header.tsx
  3. 1 1
      apps/web/components/playground.tsx

+ 1 - 3
apps/web/app/playground/layout.tsx

@@ -3,7 +3,5 @@ export default function PlaygroundLayout({
 }: {
 }: {
   children: React.ReactNode;
   children: React.ReactNode;
 }) {
 }) {
-  return (
-    <div className="h-screen flex flex-col overflow-hidden">{children}</div>
-  );
+  return <div className="h-dvh flex flex-col overflow-hidden">{children}</div>;
 }
 }

+ 2 - 1
apps/web/components/header.tsx

@@ -51,7 +51,8 @@ export function Header() {
             href="/playground"
             href="/playground"
             className="text-sm text-muted-foreground hover:text-foreground transition-colors"
             className="text-sm text-muted-foreground hover:text-foreground transition-colors"
           >
           >
-            Playground
+            <span className="sm:hidden">Play</span>
+            <span className="hidden sm:inline">Playground</span>
           </Link>
           </Link>
           <Link
           <Link
             href="/docs"
             href="/docs"

+ 1 - 1
apps/web/components/playground.tsx

@@ -330,7 +330,7 @@ ${jsx}
           onChange={(e) => setInputValue(e.target.value)}
           onChange={(e) => setInputValue(e.target.value)}
           onKeyDown={handleKeyDown}
           onKeyDown={handleKeyDown}
           placeholder="Describe changes..."
           placeholder="Describe changes..."
-          className="w-full bg-background text-sm resize-none outline-none placeholder:text-muted-foreground/50"
+          className="w-full bg-background text-base sm:text-sm resize-none outline-none placeholder:text-muted-foreground/50"
           rows={2}
           rows={2}
         />
         />
         <div className="flex justify-between items-center mt-2">
         <div className="flex justify-between items-center mt-2">