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: drop hardcoded scenario header height #7993

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

emersion
Copy link
Member

@emersion emersion commented Jul 9, 2024

The scenario header size is hardcoded to 8rem. Replace these rules with a flexbox-based layout.

@emersion emersion requested review from clarani and Uriel-Sautron July 9, 2024 15:22
@emersion emersion requested a review from a team as a code owner July 9, 2024 15:22
@codecov-commenter
Copy link

codecov-commenter commented Jul 9, 2024

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

Codecov Report

Attention: Patch coverage is 0% with 96 lines in your changes missing coverage. Please review.

Project coverage is 28.24%. Comparing base (bea5cee) to head (9a0f302).

Files Patch % Lines
...cations/operationalStudies/views/v2/ScenarioV2.tsx 0.00% 96 Missing ⚠️

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

Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #7993      +/-   ##
============================================
- Coverage     28.25%   28.24%   -0.02%     
  Complexity     2075     2075              
============================================
  Files          1276     1276              
  Lines        156193   156190       -3     
  Branches       3084     3084              
============================================
- Hits          44136    44115      -21     
- Misses       110216   110234      +18     
  Partials       1841     1841              
Flag Coverage Δ
core 75.03% <ø> (ø)
editoast 70.94% <ø> (-0.08%) ⬇️
front 9.92% <0.00%> (+<0.01%) ⬆️
gateway 2.34% <ø> (ø)
railjson_generator 87.49% <ø> (ø)
tests 72.93% <ø> (ø)

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.

@emersion emersion force-pushed the emersion/drop-hardcoded-size branch from 883e966 to 2fe805a Compare July 10, 2024 07:56
Copy link
Contributor

@Uriel-Sautron Uriel-Sautron left a comment

Choose a reason for hiding this comment

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

LGTM thank you!!! Tested

The scenario header size is hardcoded to 8rem. Replace these rules
with a flexbox-based layout.
@emersion emersion force-pushed the emersion/drop-hardcoded-size branch from 2fe805a to 9a0f302 Compare July 10, 2024 09:11
Copy link
Contributor

@theocrsb theocrsb left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@clarani clarani 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 ✅

@emersion emersion added this pull request to the merge queue Jul 10, 2024
Merged via the queue into dev with commit 45b2718 Jul 10, 2024
17 checks passed
@emersion emersion deleted the emersion/drop-hardcoded-size branch July 10, 2024 15:42
emersion added a commit that referenced this pull request Jul 11, 2024
This is a re-do of #7993, which got reverted in #8015 because of a
bug when the timetable contains lots of trains.
emersion added a commit that referenced this pull request Aug 20, 2024
This is a re-do of #7993, which got reverted in #8015 because of a
bug when the timetable contains lots of trains.
emersion added a commit that referenced this pull request Aug 21, 2024
This is a re-do of #7993, which got reverted in #8015 because of a
bug when the timetable contains lots of trains.
emersion added a commit that referenced this pull request Aug 21, 2024
This is a re-do of #7993, which got reverted in #8015 because of a
bug when the timetable contains lots of trains.

In a flex context, the implicit default value for min-height is
auto, and that prevents elements from overflowing with a scrollbar
(because min-height wins against height and max-height). Override
the default with "min-height: 0".
emersion added a commit that referenced this pull request Aug 29, 2024
This is a re-do of #7993, which got reverted in #8015 because of a
bug when the timetable contains lots of trains.

In a flex context, the implicit default value for min-height is
auto, and that prevents elements from overflowing with a scrollbar
(because min-height wins against height and max-height). Override
the default with "min-height: 0".
github-merge-queue bot pushed a commit that referenced this pull request Aug 29, 2024
This is a re-do of #7993, which got reverted in #8015 because of a
bug when the timetable contains lots of trains.

In a flex context, the implicit default value for min-height is
auto, and that prevents elements from overflowing with a scrollbar
(because min-height wins against height and max-height). Override
the default with "min-height: 0".
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.

6 participants