Files
workavia-mail-front/docs/adr/0026-fix-horizontal-scroll-bar-in-email-detail-view.md
dab246 3799f39a15 TF-1861 Add adr to use work manager
(cherry picked from commit 0a1c659327d74bc0b9c50fe2b2b1e7d3f3fcd1ae)
2023-06-05 11:02:20 +07:00

1002 B

26. Hide Horizontal scroll bar in Email detail view

Date: 2023-04-24

Status

Context

In email view always show horizontal scroll bar in Email detail view and don't wrap text instead

Root cause

The horizontal scrollbar appears when the content inside the body element is wider than the width of the viewport. By default, the overflow property is set to "visible", which means that the content can overflow the element's boundaries.

Decision

When you set overflow-x: hidden; on the body element, it prevents the content from overflowing the element's boundaries in the horizontal direction, effectively disabling the horizontal scrollbar. However, if you don't set this property and the content is wider than the viewport, the scrollbar will appear to allow the user to scroll horizontally to see the content that is outside the viewport.

Consequences

  • Hide Horizontal scroll bar in Email detail view