Skip to content

Commit af5368a

Browse files
chore: css tweaks
Signed-off-by: Henry Gressmann <[email protected]>
1 parent c4d50c2 commit af5368a

File tree

13 files changed

+66
-92
lines changed

13 files changed

+66
-92
lines changed

Cargo.lock

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

web/bun.lockb

0 Bytes
Binary file not shown.

web/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
"dependencies": {
1212
"@astrojs/react": "^3.6.2",
1313
"@explodingcamera/css": "^0.0.4",
14-
"@fontsource-variable/figtree": "^5.0.22",
14+
"@fontsource-variable/figtree": "^5.0.23",
1515
"@icons-pack/react-simple-icons": "^10.0.0",
1616
"@nivo/line": "^0.87.0",
1717
"@picocss/pico": "^2.0.6",
1818
"@radix-ui/react-accordion": "^1.2.0",
1919
"@radix-ui/react-dialog": "^1.1.1",
2020
"@radix-ui/react-tabs": "^1.1.0",
2121
"@scaleway/use-query-params": "^5.0.5",
22-
"@tanstack/react-query": "^5.55.0",
22+
"@tanstack/react-query": "^5.55.2",
2323
"@uidotdev/usehooks": "^2.4.1",
2424
"date-fns": "^3.6.0",
2525
"fets": "^0.8.3",
@@ -38,7 +38,7 @@
3838
"@types/react-dom": "^18.3.0",
3939
"@types/react-simple-maps": "^3.0.6",
4040
"astro": "^4.15.4",
41-
"bun-types": "^1.1.26",
41+
"bun-types": "^1.1.27",
4242
"rollup-plugin-license": "^3.5.2",
4343
"typescript": "^5.5.4"
4444
},

web/src/components/card.module.css

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ a.card {
88
z-index: 0;
99
display: inline-flex;
1010
align-items: center;
11-
gap: 0.4rem;
11+
gap: 0.3rem;
1212

1313
margin: 0;
14-
padding: 0.3rem 0.4rem 0.3rem 0.5rem;
14+
padding: 0.3rem 0.4rem 0.2rem 0.4rem;
1515

1616
transition: background-color 0.2s ease;
17-
border-radius: var(--pico-border-radius);
1817

1918
&::before {
2019
content: "";
@@ -24,10 +23,10 @@ a.card {
2423
left: 0;
2524
right: 0;
2625
bottom: 0;
27-
border-radius: var(--pico-border-radius);
26+
border-radius: calc(var(--pico-border-radius) - 3px);
2827
background-color: var(--pico-card-background-color);
2928
box-shadow: var(--pico-card-box-shadow);
30-
opacity: 0.8;
29+
opacity: 0;
3130
transition: opacity 0.2s ease;
3231
}
3332

web/src/components/dimensions/dimensions.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
padding-bottom: 0.5rem;
4141
display: flex;
4242
align-items: center;
43-
gap: 0.2rem;
43+
gap: 0.4rem;
4444

4545
&:hover {
4646
&::after {
@@ -58,7 +58,7 @@
5858
opacity: 0.09;
5959
z-index: -1;
6060
transition: width 0.3s ease-in-out, opacity 0.1s ease-in-out;
61-
border-radius: 1rem;
61+
border-radius: 10px;
6262
}
6363
}
6464

web/src/components/dimensions/index.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,12 @@ const dimensionLabels: Record<Dimension, (value: DimensionTableRow) => React.Rea
123123
platform: (value) => (
124124
<>
125125
<OSIcon os={value.dimensionValue} size={24} />
126-
&nbsp;
127126
{value.dimensionValue}
128127
</>
129128
),
130129
browser: (value) => (
131130
<>
132131
<BrowserIcon browser={value.dimensionValue} size={24} />
133-
&nbsp;
134132
{value.dimensionValue}
135133
</>
136134
),
@@ -140,7 +138,6 @@ const dimensionLabels: Record<Dimension, (value: DimensionTableRow) => React.Rea
140138
return (
141139
<>
142140
<LinkIcon size={16} />
143-
&nbsp;
144141
<a target="_blank" rel="noreferrer" href={getHref(url)}>
145142
{formatFullUrl(url)}
146143
</a>
@@ -152,7 +149,6 @@ const dimensionLabels: Record<Dimension, (value: DimensionTableRow) => React.Rea
152149
return (
153150
<>
154151
<LinkIcon size={16} />
155-
&nbsp;
156152
<a target="_blank" rel="noreferrer" href={getHref(url)}>
157153
{formatHost(url)}
158154
</a>
@@ -162,32 +158,27 @@ const dimensionLabels: Record<Dimension, (value: DimensionTableRow) => React.Rea
162158
mobile: (value) => (
163159
<>
164160
<MobileDeviceIcon isMobile={value.dimensionValue === "true"} size={24} />
165-
&nbsp;
166161
{value.dimensionValue === "true" ? "Mobile" : "Desktop"}
167162
</>
168163
),
169164
country: (value) => (
170165
<>
171-
{countryCodeToFlag(value.dimensionValue)}
172-
&nbsp;
166+
<span>{countryCodeToFlag(value.dimensionValue)}</span>
173167
{value.displayName || value.dimensionValue || "Unknown"}
174168
</>
175169
),
176170
city: (value) => (
177171
<>
178-
{countryCodeToFlag(value.icon || "XX")}
179-
&nbsp;
172+
<span>{countryCodeToFlag(value.icon || "XX")}</span>
180173
{value.displayName || "Unknown"}
181174
</>
182175
),
183176
referrer: (value) => (
184177
<>
185178
<ReferrerIcon referrer={value.dimensionValue} icon={value.icon} size={24} />
186-
&nbsp;
187179
{value.displayName || value.dimensionValue || "Unknown"}
188180
{value.dimensionValue && isValidFqdn(value.dimensionValue) && (
189181
<>
190-
&nbsp;
191182
<a href={`https://${value.dimensionValue}`} target="_blank" rel="noreferrer" className={styles.external}>
192183
<SquareArrowOutUpRightIcon size={16} />
193184
</a>

web/src/components/project.module.css

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
.project {
22
display: flex;
33
flex-direction: column;
4-
gap: 1rem;
4+
gap: 0.8rem;
55
}
66

77
.projectHeader {
88
display: flex;
99
justify-content: space-between;
1010
align-items: center;
11-
margin-bottom: 0.2rem;
11+
margin-bottom: 0.4rem;
1212
flex-wrap: wrap;
1313
gap: 1rem;
1414

@@ -23,14 +23,10 @@
2323
}
2424
}
2525

26-
.projectStats {
27-
}
28-
2926
.tables {
3027
display: grid;
3128
grid-template-columns: 1fr 1fr;
32-
gap: 1rem;
33-
row-gap: 1rem;
29+
gap: 0.8rem;
3430

3531
@media (max-width: 40rem) {
3632
grid-template-columns: 1fr;
@@ -39,6 +35,7 @@
3935

4036
.graphCard {
4137
height: 20rem;
38+
margin-top: -0.2rem;
4239
padding: 1rem 0 1rem 0.5rem;
4340
}
4441

web/src/components/project/metric.module.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
z-index: 1;
44
display: flex;
55
gap: 0.7rem;
6-
margin-bottom: -0.4rem;
76

87
@media (max-width: 820px) {
98
flex-wrap: wrap;

web/src/components/project/project.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export const ProjectHeader = ({
1616
<h1 className={styles.statsHeader}>
1717
<span>
1818
<CardLink href={`/p/${project.id}`}>
19-
{project.displayName}
2019
{project.public ? null : <LockIcon size={16} />}
20+
{project.displayName}
2121
</CardLink>
2222
&nbsp;
2323
</span>

0 commit comments

Comments
 (0)