Skip to content

fix(footer): center columns on small screens - #698

Open
coderboy-yash wants to merge 1 commit into
containers:mainfrom
coderboy-yash:fix/footer-spacing-618
Open

fix(footer): center columns on small screens#698
coderboy-yash wants to merge 1 commit into
containers:mainfrom
coderboy-yash:fix/footer-spacing-618

Conversation

@coderboy-yash

Copy link
Copy Markdown

Fixes: #618

Concisely describe the change

Below 996px, the footer's Docs/Community/Projects columns stack on top of each other but stay lined up on the left. Since the link labels are short, this leaves a big empty gap on the right side of each column — that's the "excessive padding on their right" from the issue.

Added one CSS rule that centers the columns when they're stacked, so the leftover space is spread evenly instead of sitting on one side. Nothing changes above 996px, where the columns already sit side by side.

Before screenshot / screen recording

Narrow desktop (900px):
before desktop

Mobile (390px):
before mobile

After screenshot / screen recording

Narrow desktop (900px):
after desktop

Mobile (390px):
after mobile

Checklist

  • Certify you wrote the patch or otherwise have the right to pass it on as an open-source patch by signing all commits. (git commit -s). The author email matches the sign-off email address.
  • Referenced issues using Fixes: #618 in commit message
  • PR description, commit message, and GitHub comments are human-written, per LLM Policy

Fixes: containers#618

Below 996px the footer columns (Docs, Community, Projects) stack on
top of each other but stay lined up on the left, so there's a big
empty gap on the right side of every column. Centered the columns in
that view so the space is even on both sides. Desktop layout above
996px is not touched.

Signed-off-by: yash nigam <yashnigam.dev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Footer has unnecessary spacing on viewports below 997px

1 participant