-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
14 update the component rendering to avoid their overlap in reduced screen size mode #16
Conversation
Once react version is upgraded to 18 these checks will resolve. PR |
…heir-overlap-in-reduced-screen-size-mode Merging in changes from main
…heir-overlap-in-reduced-screen-size-mode Merging in main after actually pulling it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some questions and see screenshot added to the PR.
package.json
Outdated
@@ -4,7 +4,9 @@ | |||
"version": "0.1.0", | |||
"private": true, | |||
"dependencies": { | |||
"@emotion/styled": "^11.11.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we using emotion anywhere?
@@ -55,7 +56,7 @@ class ObsBox extends React.Component { | |||
// We only set the title of the graph if there's one site selected | |||
let title = null; | |||
const xLabel = "Date"; | |||
const yLabel = `Concentration${units}`; | |||
const yLabel = `Concentration <br>${units}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we want a <br>
here?
} | ||
|
||
const availableSpecies = Object.keys(this.props.processedData); | ||
|
||
return ( | ||
<div className={styles.container}> | ||
<div className={styles.container} style={{display:'flex'}}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the style parameters be added to the CSS instead?
@@ -48,7 +48,7 @@ class RadioButtons extends React.Component { | |||
} | |||
|
|||
return ( | |||
<div className={styles.buttons} onChange={this.onChangeValue}> | |||
<div className={styles.buttons} onChange={this.onChangeValue} style={{display: "contents"}} > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the style parameters to the CSS file instead?
…heir-overlap-in-reduced-screen-size-mode
This PR involved adjusting the overlap of the plot with a clear button
Secondly, the radio MenuIcon in reduced view was not easily visible as its visualisation came out of the header background.
Radio buttons spacing is also adjusted
Y label didn't show the axis name completely in reduced size mode hence updated that too.