Skip to content

Commit 55b2785

Browse files
committed
chore(prettier): update config and format code
1 parent af431c1 commit 55b2785

File tree

7 files changed

+12
-28
lines changed

7 files changed

+12
-28
lines changed

biome.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"**/dist/**",
88
"**/node_modules/**",
99
"**/assets/bundled/**",
10-
"*.min.json"
10+
"*.min.json",
11+
"**/.astro/"
1112
]
1213
},
1314
"linter": {
@@ -20,7 +21,8 @@
2021
"**/dist/**",
2122
"**/node_modules/**",
2223
"**/assets/bundled/**",
23-
"*.min.json"
24+
"*.min.json",
25+
"**/.astro/"
2426
]
2527
},
2628
"formatter": {
@@ -34,7 +36,8 @@
3436
"**/dist/**",
3537
"**/node_modules/**",
3638
"**/assets/bundled/**",
37-
"*.min.json"
39+
"*.min.json",
40+
"**/.astro/"
3841
]
3942
},
4043
"javascript": {

prettier.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @type {import("prettier").Config} */
22
export default {
3-
printWidth: 170,
3+
printWidth: 250,
44
semi: true,
55
singleQuote: false,
66
tabWidth: 2,

src/components/AssetCard.astro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ export const prerender = false;
1313
<button data-asset={JSON.stringify(asset)}>
1414
<div class="relative group cursor-pointer transition-all duration-150 hover:scale-105">
1515
<Image loading="lazy" src={asset.image} alt={asset.name} height={145} width={145} class="h-36 aspect-square object-cover rounded-md transition-all duration-150" />
16-
<div
17-
class="absolute bottom-0 left-0 w-full h-full bg-black/20 opacity-0 group-hover:opacity-100 rounded-b-md duration-150 flex items-end p-2 px-4 font-semibold transition-all z-10"
18-
>
16+
<div class="absolute bottom-0 left-0 w-full h-full bg-black/20 opacity-0 group-hover:opacity-100 rounded-b-md duration-150 flex items-end p-2 px-4 font-semibold transition-all z-10">
1917
<section class="inline-flex items-center gap-2 text-white" class:list={{ "text-red-600": asset.error, "text-yellow-400": asset.partial }}>
2018
{asset.custom && <UserRoundPlus class="size-5" />}
2119
{asset.partial && <CircleAlert class="size-5" />}

src/components/Dropdown.astro

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ const { id, text, menu } = Astro.props;
2323
</svg>
2424
</button>
2525

26-
<div
27-
id={id}
28-
class="z-10 hidden divide-y divide-gray-100 rounded-lg shadow-lg bg-background max-h-60 overflow-auto absolute top-full left-0 mt-2 w-auto min-w-[160px] transition-all duration-300 ease-in-out"
29-
>
26+
<div id={id} class="z-10 hidden divide-y divide-gray-100 rounded-lg shadow-lg bg-background max-h-60 overflow-auto absolute top-full left-0 mt-2 w-auto min-w-[160px] transition-all duration-300 ease-in-out">
3027
<ul class="py-2 text-sm text-gray-200">
3128
{
3229
menu.map((item) => (

src/pages/index.astro

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ import { Search } from "lucide-astro";
1111
<div class="items-center justify-center w-full max-w-screen-md">
1212
<form class="relative">
1313
<Search class="absolute left-3 top-1/2 transform -translate-y-1/2 h-5 w-5 text-interactive-secondary" />
14-
<input
15-
id="search"
16-
class="h-15 w-full border px-3 text-sm pl-10 py-6 bg-interactive border-border text-text focus:outline-none rounded-xl"
17-
placeholder="Search or type a URL"
18-
type="search"
19-
/>
14+
<input id="search" class="h-15 w-full border px-3 text-sm pl-10 py-6 bg-interactive border-border text-text focus:outline-none rounded-xl" placeholder="Search or type a URL" type="search" />
2015
</form>
2116
</div>
2217
</div>

src/pages/settings.astro

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,7 @@ import {
9090
<input id="custom-icon" placeholder="Custom Tab Icon" class="w-full outline-none bg-transparent text-text text-sm" />
9191
</div>
9292
</SettingsCard>
93-
<SettingsCard
94-
description="Quickly open another website that will replace the current website by pressing a button. (This is also the site that is opened when you cloak the site.)"
95-
title="Panic Key"
96-
Icon={Siren}
97-
>
93+
<SettingsCard description="Quickly open another website that will replace the current website by pressing a button. (This is also the site that is opened when you cloak the site.)" title="Panic Key" Icon={Siren}>
9894
<div class="flex px-4 py-3 rounded-md border-2 border-border overflow-hidden w-full mt-2 mb-2">
9995
<input id="key" placeholder="Panic Key" class="w-full outline-none bg-transparent text-text text-sm" />
10096
</div>

src/pages/tabs.astro

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,7 @@ import {
4141
</button>
4242
</div>
4343
<div class="flex-grow flex items-center justify-center mx-4">
44-
<input
45-
type="text"
46-
placeholder="Search or enter a new URL"
47-
id="inp"
48-
class="w-full h-9 px-4 rounded-md text-text border border-border bg-background-secondary shadow-sm outline-none focus:ring-1 focus:ring-accent placeholder:text-placeholder"
49-
/>
44+
<input type="text" placeholder="Search or enter a new URL" id="inp" class="w-full h-9 px-4 rounded-md text-text border border-border bg-background-secondary shadow-sm outline-none focus:ring-1 focus:ring-accent placeholder:text-placeholder" />
5045
</div>
5146
<div class="flex items-center space-x-2">
5247
<button title="Fullscreen" id="fullscreen" class="flex items-center justify-center p-2 rounded-full hover:bg-interactive">

0 commit comments

Comments
 (0)