Skip to content

Commit 7829c7b

Browse files
authored
Merge pull request #308 from carbonplan/freeman-lab/improved-table
AB1305 visual tweaks
2 parents 89fe84b + 22c68d4 commit 7829c7b

File tree

2 files changed

+31
-13
lines changed

2 files changed

+31
-13
lines changed

articles/ab1305-initial-disclosures/components/database-table.js

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ const ProjectRow = ({
205205
'&:hover': standardLink
206206
? {
207207
'td a': { color: 'primary' },
208+
'td a .badge div': { color: 'primary' },
208209
'#suffix': { transform: 'rotate(45deg)', color: 'primary' },
209210
}
210211
: {},
@@ -216,11 +217,25 @@ const ProjectRow = ({
216217
href={standardLink ? link.url : undefined}
217218
>
218219
{project_id && link.url?.includes('offsets-db') ? (
219-
<Badge sx={{ color: COLORS[category] ?? COLORS.other }}>
220+
<Badge
221+
className='badge'
222+
sx={{
223+
color: COLORS[category] ?? COLORS.other,
224+
transition: '0.2s all',
225+
}}
226+
>
220227
{project_id}
221228
</Badge>
222229
) : (
223-
<>{project_id ?? <Empty />}</>
230+
<Box
231+
sx={{
232+
fontSize: [2, 2, 2, 3],
233+
letterSpacing: '0.02em',
234+
fontFamily: 'mono',
235+
}}
236+
>
237+
{project_id ?? <Empty />}
238+
</Box>
224239
)}
225240
</ProjectCell>
226241
<ProjectCell

articles/ab1305-initial-disclosures/index.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,27 @@ In addition to the challenge of discovering and transcribing disclosures, we als
5151

5252
<Figure>
5353
<Table
54-
columns={[6]}
55-
start={[[1]]}
54+
columns={[10]}
55+
start={[[1], [2]]}
56+
width={[[1], [9]]}
5657
index={false}
57-
width={[6]}
5858
data={[
59-
['1. The name of the business entity selling the offset.'],
60-
['2. The name of the offset registry or program.'],
61-
['3. The project identification number.'],
62-
['4. The project name as listed in the registry or program.'],
59+
['1', 'The name of the business entity selling the offset.'],
60+
['2', 'The name of the offset registry or program.'],
61+
['3', 'The project identification number.'],
62+
['4', 'The project name as listed in the registry or program.'],
6363
[
64-
'5. The offset project type, including whether the offsets purchased were derived from a carbon removal, an avoided emission, or a combination of both.',
64+
'5',
65+
'The offset project type, including whether the offsets purchased were derived from a carbon removal, an avoided emission, or a combination of both.',
6566
],
66-
['6. The offset project site location.'],
67+
['6', 'The offset project site location.'],
6768
[
68-
'7. The specific protocol used to estimate emissions reductions or removal benefits.',
69+
'7',
70+
'The specific protocol used to estimate emissions reductions or removal benefits.',
6971
],
7072
[
71-
'8. Whether there is independent third-party verification of company data and claims listed.',
73+
'8',
74+
'Whether there is independent third-party verification of company data and claims listed.',
7275
],
7376
]}
7477
/>

0 commit comments

Comments
 (0)