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

front: fix simulation results width on wide screen #9960

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

Yohh
Copy link
Contributor

@Yohh Yohh commented Dec 5, 2024

close #9959

@Yohh Yohh requested review from SharglutDev and Caracol3 December 5, 2024 12:24
@Yohh Yohh requested a review from a team as a code owner December 5, 2024 12:24
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Dec 5, 2024
@codecov-commenter
Copy link

codecov-commenter commented Dec 5, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.84%. Comparing base (419a315) to head (d88d3e1).
Report is 2 commits behind head on dev.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #9960      +/-   ##
==========================================
- Coverage   79.85%   79.84%   -0.02%     
==========================================
  Files        1048     1048              
  Lines      105046   105046              
  Branches      756      756              
==========================================
- Hits        83883    83869      -14     
- Misses      21122    21136      +14     
  Partials       41       41              
Flag Coverage Δ
editoast 73.34% <ø> (-0.05%) ⬇️
front 89.34% <ø> (ø)
gateway 2.18% <ø> (ø)
osrdyne 3.28% <ø> (ø)
railjson_generator 87.49% <ø> (ø)
tests 87.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Yohh
Copy link
Contributor Author

Yohh commented Dec 5, 2024

NB: I m not sure that the max-width is really usefull at all, even in lower resolutions

@SharglutDev
Copy link
Contributor

NB: I m not sure that the max-width is really usefull at all, even in lower resolutions

Probably. Doesn't it achieve the same result if you remove max-width totally ?

@Yohh
Copy link
Contributor Author

Yohh commented Dec 5, 2024

NB: I m not sure that the max-width is really usefull at all, even in lower resolutions

Probably. Doesn't it achieve the same result if you remove max-width totally ?

it releases the col classes, so the width fit responsively, that seems much better to me, I added the media query only because I thought it was a mockup criteria

in fact, combining col and min/max-width seems to lack consistence

@SharglutDev
Copy link
Contributor

Totally missread the issue. I thought we want to stretch the results, not the sidebar. Your solution seems fine to me.

We should probably get rid off the cols when we work more on the responsive design.

@Yohh
Copy link
Contributor Author

Yohh commented Dec 5, 2024

on the contrary, cols are more responsive than using px, if I remove max-width and min-width totally the behavior seems fine:

Screencast.From.2024-12-05.14-23-05.mp4

@SharglutDev
Copy link
Contributor

SharglutDev commented Dec 5, 2024

on the contrary, cols are more responsive than using px, if I remove max-width and min-width totally the behavior seems fine:
Screencast.From.2024-12-05.14-23-05.mp4

Yes but as you mentioned, the mockup specifies that the default sidemenu width should be 432px

Capture d’écran 2024-12-05 à 15 02 54

@Yohh
Copy link
Contributor Author

Yohh commented Dec 5, 2024

Yes but as you mentioned, the mockup specifies that the default sidemenu width should be 432px

ok go for it

@Caracol3
Copy link
Contributor

Caracol3 commented Dec 5, 2024

I would also tend to prefer the use of col in the application. I find it more responsive. Though, for pixel-perfect concerns, I understand that pixels are used, but the question might be whether Thibaut is familiar with using col. If not, maybe it’s up to us to adapt the design by converting pixels to columns and get it validated by Thibaut afterward.

@Yohh Yohh added this pull request to the merge queue Dec 5, 2024
Copy link
Contributor

@Caracol3 Caracol3 left a comment

Choose a reason for hiding this comment

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

lgtm (tested)

@SharglutDev
Copy link
Contributor

SharglutDev commented Dec 5, 2024

I would also tend to prefer the use of col in the application. I find it more responsive. Though, for pixel-perfect concerns, I understand that pixels are used, but the question might be whether Thibaut is familiar with using col. If not, maybe it’s up to us to adapt the design by converting pixels to columns and get it validated by Thibaut afterward.

We totally should have a discussion with him next time. I added it in the discussions list for next front meeting.

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 5, 2024
@Yohh Yohh added this pull request to the merge queue Dec 5, 2024
Merged via the queue into dev with commit 7022b12 Dec 5, 2024
27 checks passed
@Yohh Yohh deleted the yoh/front-fix-simulation-results-display-on-wide-screen branch December 5, 2024 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:front Work on Standard OSRD Interface modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

front: wrong width on wide screen
4 participants