Skip to content

Commit 833f2e9

Browse files
committed
Fix tailwindcss prettier plugin and move prettier to root project
1 parent 748e40f commit 833f2e9

File tree

6 files changed

+146
-142
lines changed

6 files changed

+146
-142
lines changed

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"plugins": [
3+
"prettier-plugin-organize-imports",
4+
"prettier-plugin-tailwindcss"
5+
]
6+
}

package-lock.json

Lines changed: 131 additions & 129 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
"capacitor-plugin-build": "npm run build --workspace=capacitor-plugin"
2626
},
2727
"devDependencies": {
28-
"@changesets/cli": "^2.29.4"
28+
"@changesets/cli": "^2.29.4",
29+
"prettier": "^3.6.2",
30+
"prettier-plugin-organize-imports": "^4.3.0",
31+
"prettier-plugin-tailwindcss": "^0.6.14"
2932
}
3033
}

web/.prettierrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

web/components/modals/modal-wrapper.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default function ModalWrapper({
5656
placement={placement}
5757
>
5858
<ModalContent>
59-
<div className="h-fit w-full grid grid-rows-[max-content_1fr]">
59+
<div className="grid h-fit w-full grid-rows-[max-content_1fr]">
6060
{isShowGoBack && (
6161
<Button
6262
className="text-foreground-500 absolute top-1 left-1 rounded-full"
@@ -70,9 +70,11 @@ export default function ModalWrapper({
7070
)}
7171

7272
<div className="h-full w-full pt-8">
73-
<div className="max-h-[70vh] px-1 pb-4 grid grid-rows-[max-content_1fr] h-full">
73+
<div className="grid h-full max-h-[70vh] grid-rows-[max-content_1fr] px-1 pb-4">
7474
<p className="pb-4 text-center text-lg font-bold">{title}</p>
75-
<div className="overflow-y-auto w-full min-h-0 h-full max-h-full px-1">{children}</div>
75+
<div className="h-full max-h-full min-h-0 w-full overflow-y-auto px-1">
76+
{children}
77+
</div>
7678
</div>
7779
</div>
7880
</div>

0 commit comments

Comments
 (0)