Skip to content

Commit f104c83

Browse files
authored
fix: size adjustment for GitHub and npm icons (#1651)
* fix: Adjust the icon size of GitHub and NPM for packages for mobile screens * style: format code * refactor: move inline css code to style tag
1 parent 726a778 commit f104c83

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

apps/svelte.dev/src/routes/packages/PackageCard.svelte

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<!-- this is a sibling element so that we don't have links inside links -->
8282
{#if !pkg.svAlias}
8383
<div class="links">
84-
<span style="display: flex; gap: 0.75rem">
84+
<span>
8585
<a
8686
href="https://npmjs.org/package/{pkg.name}"
8787
target="_blank"
@@ -178,11 +178,29 @@
178178
a {
179179
width: 1.4rem;
180180
height: 1.4rem;
181+
182+
@media screen and (max-width: 768px) {
183+
width: 2.4rem;
184+
height: 2.4rem;
185+
}
181186
}
182187
183188
a:focus-visible {
184189
outline: 2px solid var(--sk-fg-accent);
185190
}
191+
192+
> span {
193+
display: flex;
194+
gap: 0.75rem;
195+
@media screen and (max-width: 768px) {
196+
gap: 1rem;
197+
198+
[data-icon] {
199+
width: 2.4rem;
200+
height: 2.4rem;
201+
}
202+
}
203+
}
186204
}
187205
188206
a {

0 commit comments

Comments
 (0)