diff --git a/package.json b/package.json index 7a3ec1a4d..dc4bc5d3a 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "analyze": "cross-env ANALYZE=true next build", "build": "next build", "dev": "next dev", - "format": "prettier . --check", + "format": "prettier . --write", "format:fix": "prettier . --write", "lint": "next lint", "lint:fix": "next lint --fix", diff --git a/src/components/CodeArea.module.css b/src/components/CodeArea.module.css index 85da6dede..d79c0474f 100644 --- a/src/components/CodeArea.module.css +++ b/src/components/CodeArea.module.css @@ -42,6 +42,10 @@ background: none; border: 1px solid transparent; color: currentColor; + /* Keeps copy button visible on small screens */ + display: flex; + align-items: center; + justify-content: center; } .active, diff --git a/src/content/get-started.mdx b/src/content/get-started.mdx index 7f52faf48..32857324f 100644 --- a/src/content/get-started.mdx +++ b/src/content/get-started.mdx @@ -14,7 +14,7 @@ npm install react-hook-form ## Example -The following code excerpt demonstrates a basic usage example: +The following code excerpt hello demonstrates a basic usage: