mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2026-04-23 18:11:04 +08:00
chore: add prettier-plugin-tailwindcss
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
"@types/react-dom": "^18.0.6",
|
||||
"autoprefixer": "^10.4.12",
|
||||
"postcss": "^8.4.16",
|
||||
"prettier-plugin-tailwindcss": "^0.1.13",
|
||||
"prisma": "^4.4.0",
|
||||
"tailwindcss": "^3.1.8",
|
||||
"typescript": "4.8.3"
|
||||
|
||||
@@ -112,7 +112,7 @@ export default function AppShell({ children }: Props) {
|
||||
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
|
||||
|
||||
return (
|
||||
<div className="flex min-h-screen h-full">
|
||||
<div className="flex h-full min-h-screen">
|
||||
{/* Narrow sidebar */}
|
||||
<div className="hidden w-28 overflow-y-auto bg-indigo-700 md:block">
|
||||
<div className="flex w-full flex-col items-center py-6">
|
||||
@@ -132,7 +132,7 @@ export default function AppShell({ children }: Props) {
|
||||
item.current
|
||||
? 'bg-indigo-800 text-white'
|
||||
: 'text-indigo-100 hover:bg-indigo-800 hover:text-white',
|
||||
'group w-full p-3 rounded-md flex flex-col items-center text-xs font-medium',
|
||||
'group flex w-full flex-col items-center rounded-md p-3 text-xs font-medium',
|
||||
)}
|
||||
href={item.href}>
|
||||
<item.icon
|
||||
@@ -217,7 +217,7 @@ export default function AppShell({ children }: Props) {
|
||||
item.current
|
||||
? 'bg-indigo-800 text-white'
|
||||
: 'text-indigo-100 hover:bg-indigo-800 hover:text-white',
|
||||
'group py-2 px-3 rounded-md flex items-center text-sm font-medium',
|
||||
'group flex items-center rounded-md py-2 px-3 text-sm font-medium',
|
||||
)}
|
||||
href={item.href}>
|
||||
<item.icon
|
||||
|
||||
Reference in New Issue
Block a user