mirror of https://github.com/luizdepra/hugo-coder.git

Jens Rantil
22 hours ago 9819f9d41780cf67347c278d2dd2bcf25d22acf6
refs
author Jens Rantil <jens.rantil@gmail.com>
Sunday, November 15, 2026 02:43 +0100
committer GitHub <noreply@github.com>
Sunday, November 15, 2026 02:43 +0100
commit9819f9d41780cf67347c278d2dd2bcf25d22acf6
tree 52b9d651a0a40673ffed0bbc08f300d5b0fda47a tree | zip | gz
parent 8e2e45c1c13a4ebb7036d09c9f57f223131b1195 view | diff
fix: avoid the website jumping horizontally (#1015)

...due to scrollbar existing sometimes but not always.

### Prerequisites

Put an `x` into the box(es) that apply:

- [x] This pull request fixes a bug.
- [ ] This pull request adds a feature.
- [ ] This pull request introduces breaking change.

### Description

The page jumps horizontally when browsing from a page without scrollbar
to one that has it.

I deliberately decided to use `both-edges` to make the front page fully
centered.

### Issues Resolved

Issue #1014.

### Checklist

Put an `x` into the box(es) that apply:

#### General

- [x] Describe what changes are being made
- [x] Explain why and how the changes were necessary and implemented
respectively
- [x] Reference issue with `#<ISSUE_NO>` if applicable

#### Resources

- [x] If you have changed any SCSS code, run `make release` to
regenerate all CSS files

#### Contributors

- [x] Add yourself to `CONTRIBUTORS.md` if you aren't on it already

---------

Co-authored-by: Luiz F. A. de PrĂ¡ <luizdepra@users.noreply.github.com>
5 files modified
9 ■■■■■ changed files
assets/scss/_base.scss 1 ●●●●● diff | view | raw | blame | history
resources/_gen/assets/scss/coder-dark.scss9909fe12caa938878c0f06cd010153f1.content 2 ●●●●● diff | view | raw | blame | history
resources/_gen/assets/scss/coder-dark.scss9909fe12caa938878c0f06cd010153f1.json 2 ●●●●● diff | view | raw | blame | history
resources/_gen/assets/scss/coder.scss3309bf5eef245954e39c3edadcf84268.content 2 ●●●●● diff | view | raw | blame | history
resources/_gen/assets/scss/coder.scss3309bf5eef245954e39c3edadcf84268.json 2 ●●●●● diff | view | raw | blame | history