Skip to content

Commit d884c97

Browse files
committed
fix broken styles in safari
1 parent 0de7d62 commit d884c97

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

app/index.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
<!-- Allow installing the app to the homescreen -->
1414
<meta name="mobile-web-app-capable" content="yes" />
15+
<meta name="theme-color" content="#fffae4" />
1516

1617
<link rel="icon" type="image/png" href="favicon.png" />
1718
<title>Critterpedia Plus</title>

app/pages/Critterpedia/components/hour-picker.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,12 @@ const HourPicker = ({ hour, onChange, ...props }) => {
7474
return (
7575
<Box {...props}>
7676
<Flex justifyContent="flex-start" mb="md">
77-
<Heading mr="md">Hour</Heading>
77+
<Heading mr="md" sx={{ flex: '0 0 auto' }}>
78+
Hour
79+
</Heading>
7880
{hour !== null ? (
7981
<Box
80-
sx={{ cursor: 'pointer' }}
82+
sx={{ cursor: 'pointer', flex: '1 1 auto' }}
8183
onClick={() => {
8284
onChange(null);
8385
}}

app/pages/Critterpedia/components/month-picker.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,12 @@ const MonthPicker = ({ month, onChange, ...props }) => {
9191
return (
9292
<Box {...props}>
9393
<Flex justifyContent="flex-start" mb="md">
94-
<Heading mr="md">Month</Heading>
94+
<Heading mr="md" sx={{ flex: '0 0 auto' }}>
95+
Month
96+
</Heading>
9597
{month !== null ? (
9698
<Box
97-
sx={{ cursor: 'pointer' }}
99+
sx={{ cursor: 'pointer', flex: '1 1 auto' }}
98100
onClick={() => {
99101
onChange(null);
100102
}}

0 commit comments

Comments
 (0)