How to remove page-level horizontal scroll caused by wide Bootstrap responsive tables?

Hi everyone,

I’m using Bootstrap’s responsive tables (table-responsive class) to handle large tables with many columns. While the table’s internal scrollbar works as expected, it also triggers an unwanted horizontal scrollbar at the page level when scrolling to the right.

Problem:

  • Table scrollbar (:heavy_check_mark: intentional, due to table-responsive).
  • Page scrollbar (:x: unwanted, appears only when scrolling the table to the extreme right).

Goal:
Remove the page-level scrollbar without disabling the table’s responsiveness.

When scroll all way right, this happend

You may disable the advanced setting Use Bootstrap responsive table.

Mmmm no, I don’t want to disabe that setting

There’s another way to fix this?

Then you can only add your own JavaScript to adjust HTML element width on resize.