Skip to content

Commit

Permalink
Merge pull request #54 from syadykin/master
Browse files Browse the repository at this point in the history
CSS styles and SVG trimming fix
  • Loading branch information
farahat80 committed Apr 17, 2021
2 parents 7b03200 + 3f7348b commit 4e59f8b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
3 changes: 2 additions & 1 deletion src/js/components/Forecast.styles.js
Expand Up @@ -14,7 +14,8 @@ const useStyles = createUseStyles({
day: {
width: '25%',
textAlign: 'center',
margin: 10,
margin: '10px 0',
padding: '0 10px',
'&:not(:first-child)': {
borderLeft: ({ theme }) => `solid 1px ${theme.forecastSeparatorColor}`,
},
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/WeatherIcon.js
Expand Up @@ -37,7 +37,7 @@ WeatherIcon.propTypes = {
WeatherIcon.defaultProps = {
color: '#4BC4F7',
size: 40,
viewBox: '0 0 35 40',
viewBox: '0 -5 35 40',
};

export default WeatherIcon;
8 changes: 4 additions & 4 deletions tests/__snapshots__/Forecast.test.js.snap
Expand Up @@ -20,7 +20,7 @@ exports[`Forecast should render the Forecast component 1`] = `
className="svg-0-2-12 svg-d0-0-2-13"
height={40}
version="1.1"
viewBox="0 0 35 40"
viewBox="0 -5 35 40"
width={40}
xmlns="http://www.w3.org/2000/svg"
>
Expand Down Expand Up @@ -62,7 +62,7 @@ exports[`Forecast should render the Forecast component 1`] = `
className="svg-0-2-12 svg-d1-0-2-14"
height={40}
version="1.1"
viewBox="0 0 35 40"
viewBox="0 -5 35 40"
width={40}
xmlns="http://www.w3.org/2000/svg"
>
Expand Down Expand Up @@ -104,7 +104,7 @@ exports[`Forecast should render the Forecast component 1`] = `
className="svg-0-2-12 svg-d2-0-2-15"
height={40}
version="1.1"
viewBox="0 0 35 40"
viewBox="0 -5 35 40"
width={40}
xmlns="http://www.w3.org/2000/svg"
>
Expand Down Expand Up @@ -146,7 +146,7 @@ exports[`Forecast should render the Forecast component 1`] = `
className="svg-0-2-12 svg-d3-0-2-16"
height={40}
version="1.1"
viewBox="0 0 35 40"
viewBox="0 -5 35 40"
width={40}
xmlns="http://www.w3.org/2000/svg"
>
Expand Down
10 changes: 5 additions & 5 deletions tests/__snapshots__/ReactWeather.test.js.snap
Expand Up @@ -73,7 +73,7 @@ exports[`ReactWeather should render the ReactWeather component 1`] = `
className="svg-0-2-19 svg-d0-0-2-20"
height={120}
version="1.1"
viewBox="0 0 35 40"
viewBox="0 -5 35 40"
width={120}
xmlns="http://www.w3.org/2000/svg"
>
Expand Down Expand Up @@ -105,7 +105,7 @@ exports[`ReactWeather should render the ReactWeather component 1`] = `
className="svg-0-2-19 svg-d1-0-2-32"
height={40}
version="1.1"
viewBox="0 0 35 40"
viewBox="0 -5 35 40"
width={40}
xmlns="http://www.w3.org/2000/svg"
>
Expand Down Expand Up @@ -147,7 +147,7 @@ exports[`ReactWeather should render the ReactWeather component 1`] = `
className="svg-0-2-19 svg-d2-0-2-33"
height={40}
version="1.1"
viewBox="0 0 35 40"
viewBox="0 -5 35 40"
width={40}
xmlns="http://www.w3.org/2000/svg"
>
Expand Down Expand Up @@ -189,7 +189,7 @@ exports[`ReactWeather should render the ReactWeather component 1`] = `
className="svg-0-2-19 svg-d3-0-2-34"
height={40}
version="1.1"
viewBox="0 0 35 40"
viewBox="0 -5 35 40"
width={40}
xmlns="http://www.w3.org/2000/svg"
>
Expand Down Expand Up @@ -231,7 +231,7 @@ exports[`ReactWeather should render the ReactWeather component 1`] = `
className="svg-0-2-19 svg-d4-0-2-35"
height={40}
version="1.1"
viewBox="0 0 35 40"
viewBox="0 -5 35 40"
width={40}
xmlns="http://www.w3.org/2000/svg"
>
Expand Down
2 changes: 1 addition & 1 deletion tests/__snapshots__/WeatherIcon.test.js.snap
Expand Up @@ -5,7 +5,7 @@ exports[`WeatherIcon render WeatherIcon 1`] = `
className="svg-0-2-1 svg-d0-0-2-2"
height={120}
version="1.1"
viewBox="0 0 35 40"
viewBox="0 -5 35 40"
width={120}
xmlns="http://www.w3.org/2000/svg"
>
Expand Down

0 comments on commit 4e59f8b

Please sign in to comment.