Skip to content
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

SutarPrasad
Copy link
Member

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.

@SutarPrasad
Copy link
Member Author

Once react version is upgraded to 18 these checks will resolve. PR

gareth-j and others added 5 commits August 7, 2023 18:16
…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
@SutarPrasad SutarPrasad removed the request for review from gareth-j August 7, 2023 20:59
@gareth-j
Copy link
Contributor

For me this makes the select site text move to a weird location
select_site_text

@SutarPrasad
Copy link
Member Author

For me this makes the select site text move to a weird location select_site_text

Ignore this PR it will need to be updated at the end, once all other PR's are merged. Changing to draft.

@SutarPrasad SutarPrasad marked this pull request as draft August 10, 2023 11:08
Copy link
Contributor

@gareth-j gareth-j left a 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",
Copy link
Contributor

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}`;
Copy link
Contributor

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'}}>
Copy link
Contributor

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"}} >
Copy link
Contributor

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?

@SutarPrasad SutarPrasad deleted the 14-update-the-component-rendering-to-avoid-their-overlap-in-reduced-screen-size-mode branch August 18, 2023 14:56
@SutarPrasad SutarPrasad mentioned this pull request Aug 21, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update the component rendering to avoid their overlap in reduced screen size mode
2 participants