Skip to content

fix: network inspector - fix column resizing behaviour - #1484

Merged
pFornagiel merged 2 commits into
mainfrom
@pFornagiel/network-table-resize-fix
Aug 26, 2025
Merged

pFornagiel merged 2 commits into
mainfrom
@pFornagiel/network-table-resize-fix

Conversation

@pFornagiel

Copy link
Copy Markdown
Contributor

Description

This PR fixes an issue with network inspector table column resizing behaviour: When user would try to resize the table columns by dragging the column bars and there were no rows present in the table, an error on the frontend would be thrown and the bar would follow users cursor even upon releasing mouse, causing undefined behaviour.

Screen.Recording.2025-08-26.at.10.30.04.mov

This issue is caused by internal workings of vscode-elements library. To resolve the problems:

  • a PR in the library repository has been issued, proposing a fix
  • introduced a VscodeTableInternalFix element in our code, which fixes the undefined behaviour on our site, until the library is patched

How Has This Been Tested:

Features were tested in local development environment of extension as follows:

  • open radon-ide/packages/vscode-extension
  • run the extension locally using Run and Debug menu -> Run Extension
  • open an application supporting Radon IDE in editor - example of app supporting rotation: radon-ide-test-apps/react-native-80
  • run Radon IDE extension panel, launch app on selected device, open network inspector
  • drag the column bars, see if the resizes behave as expected

How Has This Change Been Documented:

Not applicable.

@vercel

vercel Bot commented Aug 26, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
radon-ide Ready Ready Preview Comment Aug 26, 2025 8:32am

@pFornagiel
pFornagiel requested a review from jwajgelt August 26, 2025 08:33

@jwajgelt jwajgelt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good catch, and the code also looks fine.

@pFornagiel
pFornagiel merged commit 40fe395 into main Aug 26, 2025
3 checks passed
@pFornagiel
pFornagiel deleted the @pFornagiel/network-table-resize-fix branch August 26, 2025 11:40
pFornagiel added a commit that referenced this pull request Sep 24, 2025
### Description

This PR introduces changes in styling / user experience as well as minor
bug fixes related to network inspector.

Changes and fixes related to network inspector:
- replaced vscode-elements [Scrollable
component](https://vscode-elements.github.io/components/scrollable/)
used inside `NetworkLogDetails`, with [OverlayScrollbars
React](https://github.com/KingSora/OverlayScrollbars/tree/master/packages/overlayscrollbars-react)
due to the fact that `Scrollable` does not support horizontal scrolling
and vanilla css does not allow for the scrollbar to overlay the content,
which caused visual problems.
`OverlayScrollbarsComponent` has been styled to match the `Scrollable`
component of vscode-elements for consistency.
 
<img width="464" height="325" alt="Screenshot 2025-09-22 at 17 07 03"
src="https://github.com/user-attachments/assets/82ae9608-c4bd-44d5-a417-da9ffc66980e"
/>

- made styling changes in `HeadersTab` - the content is now padded
properly (padding caused visual issues in some of the themes), made the
header names and values visually distinct, added coloured Status Code
indicator to match the Chrome Devtools

<img width="521" height="330" alt="Screenshot 2025-09-22 at 16 32 16"
src="https://github.com/user-attachments/assets/837873ef-45cb-454f-8eef-7c21f985c550"
/>

- bumped version of
[vscode-elements](https://github.com/vscode-elements/elements) to
introduce official fix for issue described in #1484

- rewritten the `VscodeTableInternalFix` to tackle another issue - due
to the incorrect height calculation scrollbar fails to appear as soon as
table rows begin to overflow and works only after much more rows are
added. The issue and solution is described within component's comments.
PR to fix the issue in the original repository is under development.

- fixed problem with the chosen Tab in `NetworkLogDetails` resetting to
`Headers` whenever user changed the inspected log


Apart from changes made to network inspector, styling changes have been
introduced to main extension window (Phone Preview), which make the
`Dropdown Menus`, `Modals` and `Tooltips` visually consistent with
`Context Menu` introduced in #1506 in terms of border and shadow
details. The changes are also meant to make the menus distinct from the
extension background. These changes have to be discussed due to their
impact on visual style of the extension.

<img width="400" alt="image"
src="https://github.com/user-attachments/assets/26f95c41-8633-4648-aec2-99247560007b"
/>

<img width="400" alt="Screenshot 2025-09-22 at 17 15 51"
src="https://github.com/user-attachments/assets/21ed5b60-deb7-4762-98c0-b4418d3c88f2"
/>

<img width="400" alt="image"
src="https://github.com/user-attachments/assets/c62fbb92-30c8-4fc4-ae26-aa2cfd2256aa"
/>

<img width="400" alt="image"
src="https://github.com/user-attachments/assets/8c2af784-3c0b-45cf-b039-1da373940c45"
/>

<img width="400" alt="image"
src="https://github.com/user-attachments/assets/bdb0ea82-12a7-4ba9-9166-05b0ec493c65"
/>


### How Has This Been Tested: 

Features were tested in local development environment of extension as
follows:
- open radon-ide/packages/vscode-extension
- run the extension locally using Run and Debug menu -> Run Extension
- open an application supporting Radon IDE in editor - example of app
supporting rotation: radon-ide-test-apps/react-native-80
- run Radon IDE extension panel, launch app on selected device, open
network inspector
- **use NetworkLogDetails tabs, see if everything behaves correctly**

### How Has This Change Been Documented:

Not applicable.

This branch was successfully deployed

1 active deployment
Preview — 066c5594 Deployed Aug 26, 2025 by vercel[bot]
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.

2 participants