Skip to content

Commit ccdf4e3

Browse files
committed
fixes tw intellisense, sorting, and bumps deps
1 parent 5afd2f7 commit ccdf4e3

29 files changed

+2404
-2903
lines changed

.prettierrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"arrowParens": "always",
3-
"plugins": ["prettier-plugin-tailwindcss", "@ianvs/prettier-plugin-sort-imports"],
3+
"plugins": ["@ianvs/prettier-plugin-sort-imports", "prettier-plugin-tailwindcss"],
44
"printWidth": 120,
55
"semi": true,
66
"singleQuote": false,

app/components/example.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function Example({ children, className, style }: Props) {
88
return (
99
<div
1010
className={cx(
11-
"rounded-lg border to-gray-100 from-[#fcfcfc] dark:from-gray-200 dark:to-gray-50 bg-gradient-to-br flex items-center justify-center p-4 md:p-16 border-b-0 border-gray-300 rounded-b-none dark-high-contrast:from-gray-50 dark-high-contrast:to-white high-contrast:from-white high-contrast:to-gray-50",
11+
"flex items-center justify-center rounded-lg rounded-b-none border border-b-0 border-gray-300 bg-gradient-to-br from-[#fcfcfc] to-gray-100 p-4 dark-high-contrast:from-gray-50 dark-high-contrast:to-white high-contrast:from-white high-contrast:to-gray-50 dark:from-gray-200 dark:to-gray-50 md:p-16",
1212
className,
1313
)}
1414
style={style}

app/components/layout.tsx

+7-7
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ export function Layout({ children, className, style }: Props) {
3636
<main className={cx("mx-auto h-full max-w-7xl sm:px-4", className)} style={style}>
3737
<header className="flex h-24 items-center gap-4 px-4 sm:px-0">
3838
<button
39-
className="md:hidden flex shrink-0 h-10 w-10 items-center justify-center rounded-md border border-gray-300 bg-white focus:border-blue-500 focus:outline-none focus:ring-4 focus:ring-blue-600/25"
39+
className="flex h-10 w-10 shrink-0 items-center justify-center rounded-md border border-gray-300 bg-white focus:border-blue-500 focus:outline-none focus:ring-4 focus:ring-blue-600/25 md:hidden"
4040
onClick={() => {
4141
setShowNavigation((s) => !s);
4242
}}
4343
>
44-
{!showNavigation && <List className="w-6 h-6" />}
44+
{!showNavigation && <List className="h-6 w-6" />}
4545

46-
{showNavigation && <X className="w-6 h-6" />}
46+
{showNavigation && <X className="h-6 w-6" />}
4747
</button>
4848

4949
<Link to="/">
@@ -63,7 +63,7 @@ export function Layout({ children, className, style }: Props) {
6363
{/* TODO: this should probably have a title/tooltip instead that describes what it is since we ain't got a spot for a label */}
6464
<span className="sr-only">Theme Switcher</span>
6565
<SelectTrigger className="w-min">
66-
<Sun className="w-6 h-6 mr-1" />
66+
<Sun className="mr-1 h-6 w-6" />
6767
</SelectTrigger>
6868
</div>
6969
<SelectContent>
@@ -76,13 +76,13 @@ export function Layout({ children, className, style }: Props) {
7676
</Select>
7777
</header>
7878
{showNavigation && (
79-
<div className="md:hidden absolute bg-card z-50 p-4 bottom-0 top-24 left-0 right-0">
80-
<Navigation className="h-full scrollbar overflow-auto" />
79+
<div className="absolute bottom-0 left-0 right-0 top-24 z-50 bg-card p-4 md:hidden">
80+
<Navigation className="scrollbar h-full overflow-auto" />
8181
</div>
8282
)}
8383
<div className="flex gap-4">
8484
<Navigation className="hidden w-44 pt-9 md:block" />
85-
<article className="flex-1 bg-card p-4 shadow-2xl sm:rounded-lg md:p-9 w-0 sm:mb-4 lg:mb-9">{children}</article>
85+
<article className="w-0 flex-1 bg-card p-4 shadow-2xl sm:mb-4 sm:rounded-lg md:p-9 lg:mb-9">{children}</article>
8686
</div>
8787
</main>
8888
);

0 commit comments

Comments
 (0)