Skip to content

fix: footer not positioned correctly in problem page#268

Merged
tobiichi3227 merged 6 commits into
TFcis:v2.0from
uyo9:fix/footer
Jul 5, 2026
Merged

fix: footer not positioned correctly in problem page#268
tobiichi3227 merged 6 commits into
TFcis:v2.0from
uyo9:fix/footer

Conversation

@uyo9

@uyo9 uyo9 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

#92

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses Issue #92 where the footer on the problem page appears in an unexpected position (requiring a small scroll before it becomes visible), by removing fixed-height constraints and adjusting layout structure to better fit the viewport.

Changes:

  • Removed the fixed inline height on the problem content container and reset container height to auto when loading HTML/PDF (PDF.js) content.
  • Updated the embedded-PDF viewer flow to explicitly set a content height (currently via vh).
  • Converted the index layout to a flex-column, full-viewport-height structure so the main content grows to fill space and the footer naturally sits at the bottom.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/static/templ/pro.html Removes fixed content height and adjusts container height behavior when loading problem statements (HTML/PDF).
src/static/templ/index.html Switches base page layout to a flex column with min-vh-100 and a flex-grow-1 content region to stabilize footer placement.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/static/templ/pro.html

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment thread src/static/templ/pro.html Outdated
Comment thread src/static/templ/pro.html Outdated
uyo9 and others added 2 commits July 3, 2026 21:21
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment thread src/static/templ/pro.html Outdated
Comment thread src/static/templ/pro.html

@tobiichi3227 tobiichi3227 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Great fix.
LGTM.

@tobiichi3227
tobiichi3227 merged commit 9530678 into TFcis:v2.0 Jul 5, 2026
3 checks passed
@uyo9
uyo9 deleted the fix/footer branch July 5, 2026 16:44
@tobiichi3227

Copy link
Copy Markdown
Collaborator

Thank @uyo9 for contributing! 🎊 🎉
Looking forward to your future contributions.

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.

3 participants