Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing margin and padding from body #76

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

projectxiel
Copy link

Without the change I've made there is a default margin on the body, or maybe its padding I didn't really check, the point is there is a gap between the outter edges of the browser and the outer edges of the UI.

I've noticed this for years, because this isn't the first time I've used this. Its been bugging me like crazy so I finally cracked and decided to fork just fix this one little thing, and really it takes a single line of js, or theoretically you could do it in CSS too.

With the change there is no longer the gap and people like me who get annoyed by little things like this can sleep easier at night.

@gaby gaby changed the title removing margin and padding from the body Removing margin and padding from the body Jan 13, 2024
@gaby gaby changed the title Removing margin and padding from the body Removing margin and padding from body Jan 13, 2024
@projectxiel projectxiel reopened this Jan 30, 2024
@@ -94,6 +94,7 @@ const indexTmpl string = `
{{end}}

window.ui = ui
document.getElementsByTagName("body")[0].style="margin:0;padding:0"
Copy link
Member

Choose a reason for hiding this comment

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

@projectxiel Why not with native style tag?

Copy link
Author

Choose a reason for hiding this comment

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

I tried that when forking, and couldn't quit get it to work, maybe someone else can

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

Successfully merging this pull request may close these issues.

None yet

3 participants