diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-05-15 17:47:25 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-05-17 14:44:49 +0200 |
commit | d2336f5368587d29baf90fa6625e7b768861608e (patch) | |
tree | 6ae85ce59e830a40702609c3dac277fd5f9d2aca /packages/renderer/src/components/errorPage | |
parent | fix(renderer): reduce white flash on start (diff) | |
download | sophie-d2336f5368587d29baf90fa6625e7b768861608e.tar.gz sophie-d2336f5368587d29baf90fa6625e7b768861608e.tar.zst sophie-d2336f5368587d29baf90fa6625e7b768861608e.zip |
feat(renderer): use system fonts
This decreases bundle size and avoid layout shifts due to font loading.
Where it is not apparent wheter people can interact with a button, icons
were added to disambiguate the button from the surrounding text.
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'packages/renderer/src/components/errorPage')
-rw-r--r-- | packages/renderer/src/components/errorPage/SingleCertificateDetails.tsx | 2 | ||||
-rw-r--r-- | packages/renderer/src/components/errorPage/TrustCertificateDialog.tsx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/packages/renderer/src/components/errorPage/SingleCertificateDetails.tsx b/packages/renderer/src/components/errorPage/SingleCertificateDetails.tsx index 107d9f1..0cbcac4 100644 --- a/packages/renderer/src/components/errorPage/SingleCertificateDetails.tsx +++ b/packages/renderer/src/components/errorPage/SingleCertificateDetails.tsx | |||
@@ -40,10 +40,12 @@ const Header = styled('th')({ | |||
40 | 40 | ||
41 | const SectionHeader = styled(Header)(({ theme }) => ({ | 41 | const SectionHeader = styled(Header)(({ theme }) => ({ |
42 | padding: `${theme.spacing(2)} 0`, | 42 | padding: `${theme.spacing(2)} 0`, |
43 | fontWeight: theme.typography.fontWeightBold, | ||
43 | })); | 44 | })); |
44 | 45 | ||
45 | const SubHeader = styled(Header)(({ theme }) => ({ | 46 | const SubHeader = styled(Header)(({ theme }) => ({ |
46 | color: theme.palette.text.secondary, | 47 | color: theme.palette.text.secondary, |
48 | fontWeight: theme.typography.fontWeightMedium, | ||
47 | })); | 49 | })); |
48 | 50 | ||
49 | const Cell = styled('td')({ | 51 | const Cell = styled('td')({ |
diff --git a/packages/renderer/src/components/errorPage/TrustCertificateDialog.tsx b/packages/renderer/src/components/errorPage/TrustCertificateDialog.tsx index 630cbe0..372498b 100644 --- a/packages/renderer/src/components/errorPage/TrustCertificateDialog.tsx +++ b/packages/renderer/src/components/errorPage/TrustCertificateDialog.tsx | |||
@@ -39,8 +39,7 @@ export default function TrustCertificateDialog({ | |||
39 | return ( | 39 | return ( |
40 | <> | 40 | <> |
41 | <Typography mt={2}> | 41 | <Typography mt={2}> |
42 | <WarningAmberIcon fontSize="inherit" />{' '} | 42 | <WarningAmberIcon fontSize="inherit" /> {t('trustWarning')} |
43 | <strong>{t('trustWarning')}</strong> | ||
44 | </Typography> | 43 | </Typography> |
45 | <Box mt={1}> | 44 | <Box mt={1}> |
46 | <Button | 45 | <Button |