Skip to content

Fix sticky alerts being covered by top navbar when scrolling content.#1499

Merged
ihalaij1 merged 1 commit into
apluslms:masterfrom
sayravai:pr_1489
Feb 2, 2026
Merged

Fix sticky alerts being covered by top navbar when scrolling content.#1499
ihalaij1 merged 1 commit into
apluslms:masterfrom
sayravai:pr_1489

Conversation

@sayravai
Copy link
Copy Markdown
Contributor

Fixes #1489

Description

Add an offset of 60ox to accommodate BS5 sticky toolbar.

Why?

Course sticky notes were covered by the top navigation bar when scrolling content down.

How?

A small change in main.cs and the jQuery script on course_base.html.

Testing

Note: if there are multiple sticky-alert, they will initially all show, but when scrolling down content, the bottom one will eventually cover others. Fixing this requires bigger changes to the code and possibly some added javascript, so it is not fixed in this PR. Alternatively, the alerts could be placed under the site-messages div instead of on top of the main content.

What type of test did you run?

  • Accessibility test using the WAVE extension.
  • Django unit tests.
  • Selenium tests.
  • Other test. (Add a description below)
  • Manual testing.

[ADD A DESCRIPTION ABOUT WHAT YOU TESTED MANUALLY]

Did you test the changes in

  • Chrome
  • Firefox
  • This pull request cannot be tested in the browser.

Copy link
Copy Markdown
Contributor

@ihalaij1 ihalaij1 left a comment

Choose a reason for hiding this comment

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

Tested this, looks great!

@ihalaij1 ihalaij1 merged commit 33368d5 into apluslms:master Feb 2, 2026
7 of 9 checks passed
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.

Sticky alerts don’t work right any more

2 participants