Footer does not stay at the bottom of the page on every screen size

未关闭 适合新手
#188 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@NYABUTOA 已经在做这个了。

开始于 2026年11月19日。

  • #189 来自 @NYABUTOA —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
css, html
领域
frontend

调研方向

从 snips/base.html、snips/footer.html 和 app/static/css/custom.css 中的 .footer 开始,追踪共享页脚和页面布局的工作方式。在不同的视口尺寸下检查 Courses、Archive 和 Semester Management;完成的标准是短页面将页脚保持在窗口底部,长页面将页脚放在内容之后,且换行的页脚文本不会被裁切。

由索引模型根据 Issue 内容生成。

描述

Problem

The footer ("Issues? Contact: System Support / Created & Designed by the Student Software Development Team.") is not laid out responsively. On a taller browser window or a page with little content, it sits partway up the page with an empty grey area below it instead of sitting at the bottom of the window. Seen on the Semester Management page.

Cause

snips/footer.html is included at the end of snips/base.html, and .footer in app/static/css/custom.css is styled with:

  • position: fixed commented out, so it is not pinned to the bottom of the window
  • a fixed height: 85px and line-height: 30px
  • margin-top: 50px

There is no rule making the page at least as tall as the window (for example a sticky-footer layout), so the footer ends where the content ends. The fixed height may also cut off the text on narrow screens, where the two lines can wrap.

Expected

  • The footer sits at the bottom of the window when the page is short, and below the content when the page is long.
  • It looks right on small, medium and large screens, with no clipped text.

Notes

  • The footer is shared by every page through base.html, so the fix should be checked on a few pages, such as Courses, Archive and Semester Management.
  • A screenshot of the Semester Management page showing the empty space below the footer should be attached to this issue.
主要语言
CSS
星标
0
派生
9
平均合并
3 天 3 小时
30 天内合并 PR
1

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

BCStudentSoftwareDevTeam/bcsr 的其他 Issue

查看 BCStudentSoftwareDevTeam/bcsr 的全部 Issue

相似的 Issue

更多 Web Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。