KamoCRM

Force shadow host containment with inline styles + contain: layout

Fixkamo-internal
Shipped
25 ஏப்ரல், 2026 அன்று 9:46 PM UTC
Author
kamo
Commit
27dd0ae

Class-based overflow-x-auto on the shadow host wasn't reliably winning against the shadow ':host { all: initial }' reset, so wide email content (fixed-width tables) was visually painting past the host's layout box and causing the 3-column-wide horizontal scrollbar. Switch to inline styles (highest author cascade) with explicit width: 100% (not auto) so intrinsic shadow content can't expand the host, and add contain: layout to fully isolate shadow tree layout from the light DOM. The host now reliably acts as a fixed-width scroll container for wide email bodies.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing