18975: Fixes log viewer's follow mode when maximized.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Thu, 7 Jul 2022 20:47:01 +0000 (17:47 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Thu, 7 Jul 2022 20:59:22 +0000 (17:59 -0300)
commit6b316062dcb8425145f3456f3b62abc1830776cd
treeb88802edc1e715d84829b3a5b083815ae362771d
parent8e2f0bc7db026f646c3c08bc10fe4897bda7bdd8
18975: Fixes log viewer's follow mode when maximized.

Added a 10% of scroll margin so that it's guaranteed that follow mode is
enabled no matter the log viewer's height.
The side effect is that the scrolling gets a "snap effect" when the user
gets close to the end of the log.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>
src/views/process-panel/process-log-code-snippet.tsx