Skip to content

Conversation

@u-damien
Copy link

Description

Added overflow-x: hidden; style to the body element to remove the useless horizontal scrollbar.

Before patch:
image

After patch:
image

Tetragon website's style leads to a horizontal scrollbar due to overflowing from few pixels.

This patch fixes this by adding:
1.    `overflow-x: hidden` to the body element.

By adding `overflow-x: hidden`, it hides the few pixels overflowing and removes the useless scrollbar. It does not move any other element, only removes the scrollbar.

Tried to apply `overflow-x: hidden` on child component `<div class="container-fluid td-outer"></div>` but it disables the `sticky` position on some page containing a `nav` div. 

The only way I found to remove this useless horizontal scrollbar is to apply this style to the `body` element.

Signed-off-by: Damien <[email protected]>

Signed-off-by: Damien <[email protected]>
Linking the new body.scss created at commit 8831d29. Patching the useless horizontal scrollbar.

Signed-off-by: Damien <[email protected]>
@u-damien u-damien requested review from a team and mtardy as code owners October 17, 2025 09:19
@netlify
Copy link

netlify bot commented Oct 17, 2025

Deploy Preview for tetragon ready!

Name Link
🔨 Latest commit a2d3f92
🔍 Latest deploy log https://app.netlify.com/projects/tetragon/deploys/68f20a276728730008404d09
😎 Deploy Preview https://deploy-preview-4199--tetragon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mtardy mtardy added area/documentation Improvements or additions to documentation release-note/docs This PR updates the documentation. labels Oct 17, 2025
Copy link
Member

@mtardy mtardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey thanks for this, while I agree with this change, I think it would be better to fix the cause of this instead of just masking the symptoms

image image

To what I understand it's the Get hands-on with Tetragon that is too wide and is getting extra space for some reason, would you like to take a look by any chance? :)

@u-damien
Copy link
Author

Hello,

I saw that some elements width with 100vw overflow the parent element, I think that's the problem. I might take a look in the following days.
For example, in https://tetragon.io/docs/getting-started/ if you change the footer width from 100vw to 100%, it will remove the scrollbar. I tried in the others website paths (didn't worked only with footer) but didn't had the time to check deeper.

@mtardy
Copy link
Member

mtardy commented Oct 20, 2025

Hello,

I saw that some elements width with 100vw overflow the parent element, I think that's the problem. I might take a look in the following days. For example, in https://tetragon.io/docs/getting-started/ if you change the footer width from 100vw to 100%, it will remove the scrollbar. I tried in the others website paths (didn't worked only with footer) but didn't had the time to check deeper.

If you want to look it up that would be amazing otherwise we can always open an issue for it later on. No pressure.

@u-damien
Copy link
Author

I will take a look maybe this week or the next week, yes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/documentation Improvements or additions to documentation release-note/docs This PR updates the documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants