Skip to content

front: backport fixes around train header#17375

Merged
SharglutDev merged 14 commits into
stagingfrom
stan/backport-header-fixes
Jun 25, 2026
Merged

front: backport fixes around train header#17375
SharglutDev merged 14 commits into
stagingfrom
stan/backport-header-fixes

Conversation

@Signez

@Signez Signez commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Signez and others added 14 commits June 24, 2026 18:22
Signed-off-by: Stanislas Signoud (Signez) <signez@stanisoft.net>
Signed-off-by: Pivouane (Pierre Santamaria) <pierrenumber1@outlook.com>
Signed-off-by: Stanislas Signoud (Signez) <signez@stanisoft.net>
Signed-off-by: Stanislas Signoud (Signez) <signez@stanisoft.net>
If there is no maximum value set to the DurationInput, it's not possible to offer a proper width to the greatest unit input; instead, let's set it with the current value length (or 1 if it's zero-length).

Signed-off-by: Stanislas Signoud (Signez) <signez@stanisoft.net>
As soon as you enter the first letter of the unit, move to the next unit field; like if you are writing `2h30`, we move the focus to the minutes field automatically as soon as you write `h`.

As a convenience, the same is done with `:`.

Signed-off-by: Stanislas Signoud (Signez) <signez@stanisoft.net>
Signed-off-by: Stanislas Signoud (Signez) <signez@stanisoft.net>
It's somewhat expected by user to be able to "confirm" that we ended the change in an input by pressing Enter. This is what is done here by doing what is done on a blur when that key is entered.

Signed-off-by: Stanislas Signoud (Signez) <signez@stanisoft.net>
Signed-off-by: Stanislas Signoud (Signez) <signez@stanisoft.net>
It's rare that we want line-height to be defined in an absolute manner; I think this was a typo here (that happened to match what is expected most of the time, but not in small mode).

Signed-off-by: Stanislas Signoud (Signez) <signez@stanisoft.net>
Signed-off-by: Stanislas Signoud (Signez) <signez@stanisoft.net>
Using a modal dialog do not let inputs keep their focus: after all, the whole point of a modal is that there cannot be an interaction outside of that modal… which defeat the point.

Using popover let us keep the best of both worlds: still using the top layer so they are not 'cut' by any overflows, while keeping the focus in the input that caused their opening.

Signed-off-by: Stanislas Signoud (Signez) <signez@stanisoft.net>
It's not a modal anymore, and it never was, so let's not keep this name which could confuse other contributors in the long run.

Signed-off-by: Stanislas Signoud (Signez) <signez@stanisoft.net>
Signed-off-by: Stanislas Signoud (Signez) <signez@stanisoft.net>
In OSRD, we use fields inside of wrappers that scrolls themselves. Using popovers, we punch these divs through all those wrappers into the top-layer; this prevents the computation from actually positionning the div at the right place.

This should be reverted/removed altogether with this hook as soon as we have CSS native anchoring, as it won't have this kind of problems at all.

Signed-off-by: Stanislas Signoud (Signez) <signez@stanisoft.net>
@Signez Signez requested a review from SharglutDev June 24, 2026 16:36
@Signez Signez self-assigned this Jun 24, 2026
@Signez Signez requested a review from a team as a code owner June 24, 2026 16:36
@Signez Signez added the area:front Work on Standard OSRD Interface modules label Jun 24, 2026
@Signez Signez added the kind:backport Backporting a bug to the current release label Jun 24, 2026
@Signez Signez moved this to Awaiting merge in Board PI 20 Jun 24, 2026
@github-actions github-actions Bot added the area:ui Work on UI label Jun 24, 2026
@SharglutDev SharglutDev merged commit 9d445e2 into staging Jun 25, 2026
33 checks passed
@SharglutDev SharglutDev deleted the stan/backport-header-fixes branch June 25, 2026 08:01
@github-project-automation github-project-automation Bot moved this from Awaiting merge to Awaiting Validation in Board PI 20 Jun 25, 2026
@maelysLeratRosso maelysLeratRosso moved this from Awaiting Validation to Done in Board PI 20 Jun 25, 2026
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 area:ui Work on UI kind:backport Backporting a bug to the current release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants