Skip to content

Commit 788e732

Browse files
authored
small visual tweaks and fixes, dependencies bump (#2491)
1 parent cebbb5e commit 788e732

6 files changed

Lines changed: 31 additions & 14 deletions

File tree

bun.lock

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

components/Package/DependencyRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default function DependencyRow({ name, data, packageVersion }: Props) {
7171
<Tooltip
7272
trigger={
7373
<View>
74-
<InfoIcon style={tw`-ml-0.5 -mt-px size-3 cursor-pointer text-icon`} />
74+
<InfoIcon style={tw`-ml-0.5 size-3 cursor-pointer text-icon`} />
7575
</View>
7676
}>
7777
Optional

components/Package/ExampleBox.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,18 @@ export default function ExampleBox({ example, index }: Props) {
2323
]}
2424
hoverStyle={tw`bg-palette-gray1 dark:bg-dark`}>
2525
<View style={tw`flex max-w-full flex-row items-center gap-2.5`}>
26-
{example.includes('github.com') && <GitHubIcon style={tw`text-icon`} />}
26+
{example.includes('github.com') && <GitHubIcon style={tw`size-6 text-icon`} />}
2727
{example.includes('snack.expo.dev') && <SnackIcon style={tw`text-icon`} />}
2828
{!example.includes('github.com') && !example.includes('snack.expo.dev') && (
2929
<CodeBracketsIcon style={tw`text-icon`} />
3030
)}
3131
<span style={tw`font-light`}>{getExampleDescription(example)}</span>
3232
</View>
3333
<Text
34-
style={[tw`text-2xl leading-[28px] text-icon opacity-30`, isSmallScreen && tw`hidden`]}>
34+
style={[
35+
tw`text-2xl tabular-nums leading-[28px] text-icon opacity-30`,
36+
isSmallScreen && tw`hidden`,
37+
]}>
3538
#{index + 1}
3639
</Text>
3740
</A>

components/Package/MorePackagesBox.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,15 @@ export default function MorePackagesBox({ library }: Props) {
117117
]}>
118118
<View style={tw`flex-row items-center gap-1`}>
119119
<StarIcon style={tw`size-4 text-tertiary dark:text-palette-gray5`} />
120-
<span>{github.stats.stars.toLocaleString()}</span>
120+
<span className="tabular-nums">
121+
{github.stats.stars.toLocaleString()}
122+
</span>
121123
</View>
122124
<View style={tw`flex-row items-center gap-1`}>
123125
<DownloadIcon style={tw`text-tertiary dark:text-palette-gray5`} />
124-
<span>{formatNumberToString(npm?.downloads ?? 0)}</span>
126+
<span className="tabular-nums">
127+
{formatNumberToString(npm?.downloads ?? 0)}
128+
</span>
125129
</View>
126130
</View>
127131
</View>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@visx/xychart": "^3.12.0",
3737
"crypto-js": "^4.2.0",
3838
"es-toolkit": "^1.47.0",
39-
"expo": "56.0.7",
39+
"expo": "56.0.8",
4040
"expo-font": "56.0.5",
4141
"next": "^16.2.6",
4242
"node-emoji": "^2.2.0",
@@ -71,7 +71,7 @@
7171
"browserslist": "^4.28.2",
7272
"cheerio": "^1.2.0",
7373
"dotenv": "^17.4.2",
74-
"lint-staged": "^17.0.5",
74+
"lint-staged": "^17.0.7",
7575
"next-compose-plugins": "^2.2.1",
7676
"next-fonts": "^1.5.1",
7777
"next-images": "^1.8.5",

styles/styles.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,14 @@ select {
675675
summary {
676676
margin-top: 8px !important;
677677
cursor: pointer;
678+
679+
&::marker {
680+
transition: color 0.2s;
681+
}
682+
683+
&:hover::marker {
684+
color: var(--icon);
685+
}
678686
}
679687
}
680688

0 commit comments

Comments
 (0)