Courses sidebar jumps up when opening the Programs dropdown

オープン 初心者向け
#473 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 7 日以内に返信

@Ayeyomeday がすでに取り組んでいます。

2026年11月13日 から。

  • #479 @Ayeyomeday による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
bootstrap, javascript
領域
frontend

調査の方向性

まず app/static/css/sidebar.css を読み、#divisionSelect と .invisible-select の箇所を確認します。次に、Programs ドロップダウンがどのように初期化され、開かれるかを追います。term と program を選択した状態で、Courses ページで問題を再現します。Programs を開いたときに、サイドバーのスクロール位置を動かさず、見出しの下に科目一覧が表示されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

On the Courses page, clicking Programs in the left sidebar scrolls the whole sidebar up: the Term list and the Programs header slide out of view, and only the subject list (MAT, CSC, …) is visible at the top. Picking a subject reloads the page and it looks normal again.

Steps to reproduce

  1. Go to Courses → pick any term and program.
  2. Click "Programs ▾" in the sidebar.

Expected: the subject list opens below the Programs header, and the sidebar stays where it was.

image

Actual: the sidebar scrolls up.

image

Likely cause: the Programs dropdown is a hidden bootstrap-select (#divisionSelect, .invisible-select in app/static/css/sidebar.css) inside the sidebar, which has overflow-y: scroll. Opening it makes the browser scroll the sidebar to show the list or its search box.

主要言語
JavaScript
スター
0
フォーク
3
平均マージ
8日 5時間
マージ済み PR(30日)
6

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

BCStudentSoftwareDevTeam/cas のほかの issue

BCStudentSoftwareDevTeam/cas の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。