Skip to content

Commit

Permalink
Update Tailwind config to add xs screen size
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutlope committed Mar 1, 2023
1 parent 2ffb3d4 commit c865ab3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Link from "next/link";

export default function Header() {
return (
<header className="flex justify-between items-center w-full mt-3 border-b pb-7 sm:px-4 px-2 border-gray-500">
<header className="flex flex-col xs:flex-row justify-between items-center w-full mt-3 border-b pb-7 sm:px-4 px-2 border-gray-500 gap-2">
<Link href="/" className="flex space-x-2">
<Image
alt="header text"
Expand Down
6 changes: 5 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ module.exports = {
"./app/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
extend: {
screens: {
xs: "330px",
},
},
},
plugins: [require("@tailwindcss/forms"), require("@headlessui/tailwindcss")],
};

0 comments on commit c865ab3

Please sign in to comment.