feat: Persist response body scroll position across tabs
Description
Persists the response body's scroll position when changing tabs. When a user changes to another tab and then comes back to the original tab, the scroll position will be restored.
This aims to solve https://github.com/usebruno/bruno/issues/3147 and https://github.com/usebruno/bruno/issues/2742.
I appreciate there may be a few changes needed here needed but the general principle should be there.
Contribution Checklist:
- [x] The pull request only addresses one issue or adds one feature.
- [x] The pull request does not introduce any breaking changes
- [x] I have added screenshots or gifs to help explain the change if applicable.
- [x] I have read the contribution guidelines.
I have noticed this issue where the response body's scrollbar duplicates itself and thought it was as a result of this PR. It isn't as this is reproducible on main. Marking the PR as ready for review.
I've been looking for this feature, thanks for implementing it
@terminal-overflow Now that the scroll position is persisted, is it possible to take a look at #874 (and duplicate #3431) to persist the response tree view collapse/expand state as well?