Skip to content

Commit e0653c3

Browse files
committed
remove alt from avatar; it causes issues and it doesnt provide any benefit
1 parent c1cb1b5 commit e0653c3

File tree

4 files changed

+21
-15
lines changed

4 files changed

+21
-15
lines changed

.gitignore

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.DS_Store
22
node_modules
3-
/build
4-
/dist
5-
/.svelte-kit
6-
/package
3+
**/build
4+
**/dist
5+
**/.svelte-kit
6+
**/package
77
.env
88
.env.*
99
!.env.example

.prettierrc

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
{
2-
"useTabs": false,
3-
"singleQuote": false,
4-
"trailingComma": "all",
5-
"printWidth": 100,
6-
"tabWidth": 4,
7-
"plugins": ["prettier-plugin-svelte"],
2+
"plugins": [
3+
"@trivago/prettier-plugin-sort-imports",
4+
"prettier-plugin-svelte"
5+
],
86
"overrides": [
97
{
108
"files": "*.svelte",
119
"options": {
1210
"parser": "svelte"
1311
}
1412
}
15-
]
13+
],
14+
"importOrder": ["^[./]"],
15+
"tabWidth": 4,
16+
"useTabs": false,
17+
"trailingComma": "es5",
18+
"printWidth": 100,
19+
"singleQuote": false,
20+
"semi": true
1621
}

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"type": "module",
7070
"dependencies": {
7171
"@nostr-dev-kit/ndk": "^0.8.7",
72+
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
7273
"classnames": "^2.3.2",
7374
"hurdak": "github:ConsignCloud/hurdak",
7475
"isomorphic-dompurify": "^1.8.0",

src/lib/user/Avatar.svelte

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@
3535

3636
{#await user?.fetchProfile()}
3737
<img
38-
alt="Loading avatar for {npub}"
38+
alt=""
3939
class="avatar avatar--loading {$$props.class}"
4040
style={$$props.style}
4141
/>
4242
{:then value}
4343
<img
44-
src={user?.profile?.image ?? 'https://placehold.co/400/ccc/ccc/webp'}
45-
alt="Avatar for {npub}"
44+
src={user?.profile?.image??"https://placehold.co/400/ccc/ccc/webp"}
45+
alt=""
4646
class="avatar avatar--image {$$props.class}"
4747
style={$$props.style}
4848
/>
4949
{:catch error}
5050
<img
51-
alt="Error loading avatar for {npub}"
51+
alt=""
5252
class="avatar avatar--error {$$props.class}"
5353
style={$$props.style}
5454
/>

0 commit comments

Comments
 (0)