GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: サイドバーのファイルツリーが縦にスクロールできない regression を修正 by ymnao · Pull Request #276 · ymnao/scripta

Conversation

@ymnao

@ymnao ymnao commented Jul 2, 2026

Copy link
Copy Markdown
Owner

概要

サイドバーのファイルツリーがサイドバーの縦 viewport を超えても縦スクロールできなくなっていた regression を修正する。

関連 Issue

なし

移行 Stage

  • Stage 6: 仕上げ・配布・切り替え(regression 修正のため実質的な stage 進行はなし)

変更内容

原因

PR #178 (261eb5f — style: UIの全体的なブラッシュアップ #162) の regression。

サイドバー幅アニメーション用に Sidebar(<aside class="flex w-60 shrink-0 flex-col">) を .sidebar-wrapper div(shrink-0 overflow-hidden、block 要素)でラップした際、

  • 変更前: aside は flex row (min-h-0 flex flex-1) の直接の子で、align-items: stretch により高さが親に固定 → 内側の flex-1 overflow-y-auto がスクロールを担っていた
  • 変更後: aside は block である .sidebar-wrapper の子になり、height: auto = コンテンツ高さまで無制限に伸びる → はみ出しは wrapper の overflow-hidden で切られ、aside 内側は overflow を発生させないため、どこにもスクロールが成立しなくなった

FileTree だけでなく、同じコンテナに入る SearchPanel / UnresolvedLinksPanel / BacklinkPanel も同じ影響を受けていた。

修正

  • .sidebar-wrapper に display: flex を追加(src/index.css:158)。wrapper が transition を owner していたのと同じ altitude に layout を colocate する形で、子 aside を stretch させ、高さ制限チェーンを復元
  • 幅アニメーション(w-60 ↔ w-0)への影響なし

回帰テスト

renderer-only e2e (e2e/filetree-scroll.spec.ts) を追加。

  • 35 ファイル(viewport 720px / 行 ~24px から算出)で FileTree をあふれさせる
  • 「最後のファイルが初期表示で viewport 外」→「ホイールスクロールで viewport 内に到達可能」を assert
  • 修正前(sidebar-wrapper が block のまま)ではどのコンテナもスクロールしないため fail する設計

動作確認

  • biome check
  • tsc --noEmit(web / e2e 両プロジェクト)
  • vitest run — 2230 passed / 2 skipped
  • electron-vite build
  • renderer-only e2e(sandbox 内 EPERM のため CI で確認)
  • 実 Electron 起動での目視確認(node_modules 変則状態のため、ローカル起動確認は user 側で pnpm install 後に実施)

スクリーンショット

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ymnao
fix: サイドバーのファイルツリーが縦にスクロールできない regression を修正
f38f8f8
#162 (style: UIの全体的なブラッシュアップ) でサイドバー幅アニメーション用に
Sidebar を `.sidebar-wrapper` div (block 要素 + overflow-hidden) でラップした際、
それまで flex row の直接の子として align-items: stretch により高さ制限を受けていた
aside (height 指定なし) が block の子になり、height: auto = コンテンツ高さまで
無制限に伸びるようになった。伸びた分は wrapper の overflow-hidden に切られ、
内側の overflow-y-auto (FileTree の ul) は overflow を発生させないため、
どこにもスクロールが成立しなくなっていた。

`.sidebar-wrapper` に `display: flex` を追加して子 aside を stretch させ、
FileTree・SearchPanel・UnresolvedLinksPanel・BacklinkPanel の縦スクロールを
すべて復元する。regression fix なので renderer-only e2e に「35 ファイルで
ツリーをあふれさせ → 最後のファイルが viewport 外 → wheel で到達可能」を
assert する回帰テストを追加した。
@ymnao
ymnao merged commit 52c93b9 into main Jul 2, 2026
9 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@ymnao
ymnao deleted the fix/filetree-scroll branch July 2, 2026 08:52
@ymnao ymnao mentioned this pull request Jul 5, 2026
chore: v0.7.0 リリース準備 #281
Merged
6 of 7 tasks
ymnao added a commit that referenced this pull request Jul 5, 2026
@ymnao @claude
chore: v0.7.0 リリース準備 (#281)
9bce21d
- package.json の version を 0.6.0 → 0.7.0 に bump
- CHANGELOG.md に v0.7.0 エントリを追加 (#243 〜 #280)
  - Fixed: FileTree scroll regression (#276)、electron e2e launch teardown timeout 拡大 (#247)
  - Internal: #209 3 項目 (drift-lock 系 refactor #278/#279/#280)、settings setter 集約 (#273 → #277)、search/workspace/backlink 系 helper 抽出 15 件
  - Dependencies: electron 43.0.0 / p-limit 7.3.0 major bump (#275)、Dependabot 7 件 combine (#274)、pnpm-workspace.yaml overrides で @codemirror dual copy を恒久防止

Co-authored-by: Claude Opus 4.7 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@ymnao
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.