Skip to content

Commit

Permalink
fix broken styles in safari
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoo committed Jan 30, 2024
1 parent 0de7d62 commit d884c97
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

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

<link rel="icon" type="image/png" href="favicon.png" />
<title>Critterpedia Plus</title>
Expand Down
6 changes: 4 additions & 2 deletions app/pages/Critterpedia/components/hour-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,12 @@ const HourPicker = ({ hour, onChange, ...props }) => {
return (
<Box {...props}>
<Flex justifyContent="flex-start" mb="md">
<Heading mr="md">Hour</Heading>
<Heading mr="md" sx={{ flex: '0 0 auto' }}>
Hour
</Heading>
{hour !== null ? (
<Box
sx={{ cursor: 'pointer' }}
sx={{ cursor: 'pointer', flex: '1 1 auto' }}
onClick={() => {
onChange(null);
}}
Expand Down
6 changes: 4 additions & 2 deletions app/pages/Critterpedia/components/month-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ const MonthPicker = ({ month, onChange, ...props }) => {
return (
<Box {...props}>
<Flex justifyContent="flex-start" mb="md">
<Heading mr="md">Month</Heading>
<Heading mr="md" sx={{ flex: '0 0 auto' }}>
Month
</Heading>
{month !== null ? (
<Box
sx={{ cursor: 'pointer' }}
sx={{ cursor: 'pointer', flex: '1 1 auto' }}
onClick={() => {
onChange(null);
}}
Expand Down

0 comments on commit d884c97

Please sign in to comment.