Replace window resize listener with resize observer

What does this MR do and why?

This change updates the job app to respond to changes in the actual job app instead of only changes to the window.

This way related events, like sidebar toggling and state of the buttons can stay up to date

Changelog: fixed

Why now?

With the introduction of panels, our logs will be resized not only when the page changes size, but also when other adjacent panels are shown/hidden.

References

Screenshots or screen recordings

No changes in the implementation are expected, we can test behavior like the sidebar toggling:

2025-09-08_16.19.48

How to set up and validate locally

  1. Open a job. e.g. https://gdk.test:3000/my-group/my-project/-/jobs/4698
  2. Resize the screen and ensure the sidebar gets hidden when the viewport shrinks.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #566240

Edited by Miguel Rincon

Merge request reports

Loading