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, second take #8028

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

emersion
Copy link
Member

@emersion emersion commented Jul 11, 2024

See individual commits.

This is a re-do of #7993, which got reverted in #8015 because of a bug when the timetable contains lots of trains.

@emersion emersion self-assigned this Jul 11, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jul 11, 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 100 lines in your changes missing coverage. Please review.

Project coverage is 28.06%. Comparing base (fb9a309) to head (7811234).
Report is 1 commits behind head on dev.

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

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

Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #8028      +/-   ##
============================================
- Coverage     28.07%   28.06%   -0.01%     
  Complexity     2075     2075              
============================================
  Files          1288     1288              
  Lines        157712   157708       -4     
  Branches       3121     3121              
============================================
- Hits          44281    44268      -13     
- Misses       111554   111563       +9     
  Partials       1877     1877              
Flag Coverage Δ
core 75.03% <ø> (ø)
editoast 70.85% <ø> (-0.05%) ⬇️
front 9.94% <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/revert-the-revert branch 3 times, most recently from c8d4699 to 897fa7c Compare August 21, 2024 10:16
@emersion emersion marked this pull request as ready for review August 21, 2024 10:16
@emersion emersion requested a review from a team as a code owner August 21, 2024 10:16
@emersion emersion requested review from kmer2016 and Caracol3 August 21, 2024 10:18
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)

Copy link
Contributor

@kmer2016 kmer2016 left a comment

Choose a reason for hiding this comment

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

LGTM and tested !

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 emersion force-pushed the emersion/revert-the-revert branch from 897fa7c to 35e3669 Compare August 29, 2024 14:30
@emersion
Copy link
Member Author

Dropped the first commit because similar changes have been made in Clara's lazy loading patches.

@emersion emersion added this pull request to the merge queue Aug 29, 2024
Merged via the queue into dev with commit 6540e3b Aug 29, 2024
22 checks passed
@emersion emersion deleted the emersion/revert-the-revert branch August 29, 2024 14:57
emersion added a commit that referenced this pull request Aug 29, 2024
If the scenario description is empty, or shorter than 4 lines,
collapse it instead of eating up screen real estate.

[1] made this possible.

[1]: #8028
github-merge-queue bot pushed a commit that referenced this pull request Aug 30, 2024
If the scenario description is empty, or shorter than 4 lines,
collapse it instead of eating up screen real estate.

[1] made this possible.

[1]: #8028
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.

4 participants