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

Height-graph width reduced #149

Merged
merged 7 commits into from
Apr 7, 2023
Merged

Conversation

MihirKp25
Copy link
Contributor

πŸ› οΈ Fixes Issue

Closes #136

πŸ‘¨β€πŸ’» Changes proposed

I have reduced the width of height graph from 0.9 to 0.75 in Map.jsx file. I tried to change this width dynamically but it didn't end well. But still it looks pretty nice to me and now we can easily see y axis of height graph.

πŸ“„ Note to reviewers

If you find a way of reducing the width dynamically whenever the direction tab closes please tell me :)

πŸ“· Screenshots

image9

@MihirKp25 MihirKp25 marked this pull request as ready for review March 24, 2023 07:28
@chrstnbwnkl
Copy link
Contributor

@MihirKp25 could you please resolve existing conflicts so we can have a look at your PR?

@MihirKp25
Copy link
Contributor Author

I have resolved conflicts. Sorry for inconvenience.

Copy link
Owner

@nilsnolde nilsnolde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whitespace-only changes seem irrelevant, I’d actually expect prettier to complain.. Can you revert those?

@MihirKp25
Copy link
Contributor Author

MihirKp25 commented Mar 24, 2023

I have made your suggested changes @nilsnolde

@@ -139,7 +139,6 @@ class Waypoint extends React.Component {
</Label>
}
/>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check your PR again for unnecessary, whitespace-only changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I misinterpreted the last change request and added spaces in this file. I removed those changes. Please let me know if there are any other unnecessary changes I have made. And sorry for the inconvenience.

@nilsnolde nilsnolde self-requested a review March 27, 2023 11:05
Copy link
Owner

@nilsnolde nilsnolde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine for me, thanks. I'll let @chrstnbwnkl merge if he's ok with this.

@chrstnbwnkl chrstnbwnkl self-requested a review March 27, 2023 12:57
Copy link
Contributor

@chrstnbwnkl chrstnbwnkl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order for the graph to resize based on the panel's collapsed state, this should not only execute in componentDidMount (which only runs once), but whenever the side panel's collapsed state changes.

@MihirKp25
Copy link
Contributor Author

I will try to make your suggested changes asap.

@MihirKp25
Copy link
Contributor Author

osm.-.Made.with.Clipchamp_1680012651071.mp4

@chrstnbwnkl I have made changes in the function such that the width of the height graph container reduces as the button is clicked. But it seems svg does not have automatic fit content like HTML tags. Can you help me with this error? I have actually used the query selector method to change the width of the container.

@chrstnbwnkl
Copy link
Contributor

@MihirKp25 can you push your latest changes? The functionality in the video looks pretty close to what we want to achieve, right?

@MihirKp25
Copy link
Contributor Author

MihirKp25 commented Mar 29, 2023

Changes are pushed @chrstnbwnkl . Also, I want to contact you for review of my GSOC proposal. Can you tell me how can I do this

@nilsnolde
Copy link
Owner

This looks pretty good, thanks @MihirKp25 !

You can find more info on the proposal here: https://wiki.openstreetmap.org/wiki/Google_Summer_of_Code/2023 and here: #67. If you follow those guidelines you should be good. We have (un)fortunately too many applicants to do extensive proposal review. I suggest you upload it to GSoC, we'll surely read and consider it.

@nilsnolde nilsnolde self-requested a review March 31, 2023 06:16
@nilsnolde nilsnolde merged commit b6ff717 into nilsnolde:master Apr 7, 2023
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.

[BUG] HeightGraph Y-axis goes behind Directions Tab
3 participants