Using js, how can I get Google or Bing search results to fit in the side bar

Megan’s solution works for Google, but Bing search results suddenly overflow horizontally when scrolling down.

STEPS TO REPRODUCE ISSUE:

  1. in the main browser window, visit: https://www.bbc.com/news/world-59840513
  2. select the word “Omicron”
  3. Alt + click to open the grid of icons and click on the Bing icon
  4. The search results from Bing will be displayed in the sidebar
  5. Scroll down

The search results will suddenly overflow horizontally!

UPDATE: I can only reproduce this issue when I’m debugging the extension’s code in Visual Studio Code and launching the extension via ‘web-ext run’. I can’t reproduce the issue when loading the extension from AMO! Not sure whether the problem comes from Firefox, VS Code or web-ext!?!