Skip to content

Commit fe5c98e

Browse files
authored
Fix text alignment and mobile category list (#502)
* Fix long name shows in the middle * Fix all items url * Bump version for minor fixes * Bump dependencies
1 parent 8b02d82 commit fe5c98e

File tree

4 files changed

+33
-26
lines changed

4 files changed

+33
-26
lines changed

lib/components/CategoryList.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const CategoryList = ({
5353
setCurrentCategory(category.title)
5454
selectCategory?.(category.title)
5555
}}
56-
className={`block font-medium hover:text-blue-600 dark:hover:text-blue-400 ${
56+
className={`block font-medium hover:text-blue-600 dark:hover:text-blue-400 text-start ${
5757
category.title === currentCategory
5858
? 'text-blue-700 dark:text-blue-500'
5959
: ''

lib/page.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ export const Page: FC = () => {
7575
setListTitle(state.location.category)
7676
break
7777
case 'site': {
78+
if (state.location.siteKey === 'all') {
79+
setListTitle('All Items')
80+
break
81+
}
7882
storage.getSiteEntries(state.location.siteKey).then((entries) => {
7983
if (entries.length === 0) return
8084
setListTitle(entries[0].site.title)
@@ -94,6 +98,9 @@ export const Page: FC = () => {
9498
})
9599
break
96100
}
101+
default:
102+
setListTitle('All Items')
103+
break
97104
}
98105
}, [state])
99106

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "feeds-fetcher",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "Websites feed fetcher and static feeds aggregator",
55
"main": "index.js",
66
"author": "Maythee Anegboonlap <[email protected]>",
@@ -48,8 +48,8 @@
4848
"next-themes": "^0.4.6",
4949
"node-fetch": "3",
5050
"postcss": "^8.5.3",
51-
"react": "^19.0.0",
52-
"react-dom": "^19.0.0",
51+
"react": "^19.1.0",
52+
"react-dom": "^19.1.0",
5353
"sanitize-html": "^2.15.0",
5454
"shadcn": "2.4.0-canary.17",
5555
"sql.js-httpvfs": "^0.8.12",
@@ -65,7 +65,7 @@
6565
"@types/node": "^22.13.14",
6666
"@types/react": "^19.0.12",
6767
"@types/react-dom": "^19.0.4",
68-
"@types/sanitize-html": "^2.13.0",
68+
"@types/sanitize-html": "^2.15.0",
6969
"@types/sinon": "^17.0.4",
7070
"@types/xml2js": "^0.4.14",
7171
"ava": "^6.2.0",

yarn.lock

+21-21
Original file line numberDiff line numberDiff line change
@@ -1828,12 +1828,12 @@ __metadata:
18281828
languageName: node
18291829
linkType: hard
18301830

1831-
"@types/sanitize-html@npm:^2.13.0":
1832-
version: 2.13.0
1833-
resolution: "@types/sanitize-html@npm:2.13.0"
1831+
"@types/sanitize-html@npm:^2.15.0":
1832+
version: 2.15.0
1833+
resolution: "@types/sanitize-html@npm:2.15.0"
18341834
dependencies:
18351835
htmlparser2: "npm:^8.0.0"
1836-
checksum: 10c0/c6614b38f67dd6fb3a94c9163a55fa43b9aa81a845fe9584d9ffbd5da0e00e0ac8162ede9f4bde095840b2ef9db12265f5fcc40b707f48a420405c6aa7c3ff51
1836+
checksum: 10c0/446479c1ed34ee21e5c7eef803056a7fbb984559c16b05a6e53a06f5ecb0e4efd8d3bcfb07f9a73bd15e0be86fd1f12a5f5a539546edab05e9667543b8780800
18371837
languageName: node
18381838
linkType: hard
18391839

@@ -3381,7 +3381,7 @@ __metadata:
33813381
"@types/node": "npm:^22.13.14"
33823382
"@types/react": "npm:^19.0.12"
33833383
"@types/react-dom": "npm:^19.0.4"
3384-
"@types/sanitize-html": "npm:^2.13.0"
3384+
"@types/sanitize-html": "npm:^2.15.0"
33853385
"@types/sinon": "npm:^17.0.4"
33863386
"@types/xml2js": "npm:^0.4.14"
33873387
"@vscode/sqlite3": "npm:^5.1.2"
@@ -3399,8 +3399,8 @@ __metadata:
33993399
next-themes: "npm:^0.4.6"
34003400
node-fetch: "npm:3"
34013401
postcss: "npm:^8.5.3"
3402-
react: "npm:^19.0.0"
3403-
react-dom: "npm:^19.0.0"
3402+
react: "npm:^19.1.0"
3403+
react-dom: "npm:^19.1.0"
34043404
sanitize-html: "npm:^2.15.0"
34053405
shadcn: "npm:2.4.0-canary.17"
34063406
sinon: "npm:^20.0.0"
@@ -5937,14 +5937,14 @@ __metadata:
59375937
languageName: node
59385938
linkType: hard
59395939

5940-
"react-dom@npm:^19.0.0":
5941-
version: 19.0.0
5942-
resolution: "react-dom@npm:19.0.0"
5940+
"react-dom@npm:^19.1.0":
5941+
version: 19.1.0
5942+
resolution: "react-dom@npm:19.1.0"
59435943
dependencies:
5944-
scheduler: "npm:^0.25.0"
5944+
scheduler: "npm:^0.26.0"
59455945
peerDependencies:
5946-
react: ^19.0.0
5947-
checksum: 10c0/a36ce7ab507b237ae2759c984cdaad4af4096d8199fb65b3815c16825e5cfeb7293da790a3fc2184b52bfba7ba3ff31c058c01947aff6fd1a3701632aabaa6a9
5946+
react: ^19.1.0
5947+
checksum: 10c0/3e26e89bb6c67c9a6aa86cb888c7a7f8258f2e347a6d2a15299c17eb16e04c19194e3452bc3255bd34000a61e45e2cb51e46292392340432f133e5a5d2dfb5fc
59485948
languageName: node
59495949
linkType: hard
59505950

@@ -5955,10 +5955,10 @@ __metadata:
59555955
languageName: node
59565956
linkType: hard
59575957

5958-
"react@npm:^19.0.0":
5959-
version: 19.0.0
5960-
resolution: "react@npm:19.0.0"
5961-
checksum: 10c0/9cad8f103e8e3a16d15cb18a0d8115d8bd9f9e1ce3420310aea381eb42aa0a4f812cf047bb5441349257a05fba8a291515691e3cb51267279b2d2c3253f38471
5958+
"react@npm:^19.1.0":
5959+
version: 19.1.0
5960+
resolution: "react@npm:19.1.0"
5961+
checksum: 10c0/530fb9a62237d54137a13d2cfb67a7db6a2156faed43eecc423f4713d9b20c6f2728b026b45e28fcd72e8eadb9e9ed4b089e99f5e295d2f0ad3134251bdd3698
59625962
languageName: node
59635963
linkType: hard
59645964

@@ -6211,10 +6211,10 @@ __metadata:
62116211
languageName: node
62126212
linkType: hard
62136213

6214-
"scheduler@npm:^0.25.0":
6215-
version: 0.25.0
6216-
resolution: "scheduler@npm:0.25.0"
6217-
checksum: 10c0/a4bb1da406b613ce72c1299db43759526058fdcc413999c3c3e0db8956df7633acf395cb20eb2303b6a65d658d66b6585d344460abaee8080b4aa931f10eaafe
6214+
"scheduler@npm:^0.26.0":
6215+
version: 0.26.0
6216+
resolution: "scheduler@npm:0.26.0"
6217+
checksum: 10c0/5b8d5bfddaae3513410eda54f2268e98a376a429931921a81b5c3a2873aab7ca4d775a8caac5498f8cbc7d0daeab947cf923dbd8e215d61671f9f4e392d34356
62186218
languageName: node
62196219
linkType: hard
62206220

0 commit comments

Comments
 (0)