Skip to content

fix(desktop): Excel diff/raw viewer を vibrancy でも不透明に戻す (#263)#266

Merged
MocA-Love merged 3 commits intomainfrom
fix/263-excel-raw-viewer-opaque
Apr 17, 2026
Merged

fix(desktop): Excel diff/raw viewer を vibrancy でも不透明に戻す (#263)#266
MocA-Love merged 3 commits intomainfrom
fix/263-excel-raw-viewer-opaque

Conversation

@MocA-Love
Copy link
Copy Markdown
Owner

概要

Issue #263 の修正。Appearance 設定のウィンドウ透過 (vibrancy) を ON にすると、Excel ビューア / Excel diff / 画像プレビュー / HTML プレビューの背景まで透過し、下のウィンドウが透けて見えていた問題を修正する。

原因

6066d72 ("make FileViewer + CodeMirror + terminal honour vibrancy") で、FileViewer 系サーフェスの背景を bg-white / bg-[#0d0d0d] から bg-background に揃えた。vibrancy ON 時は --backgroundrgba(..., var(--vibrancy-alpha)) に差し替わるため、これらのサーフェスも巻き込まれて透過してしまっていた。

コードエディタ / diff / ターミナル側はこのまま vibrancy の恩恵を受けさせたい一方、Excel / 画像 / HTML プレビューは読み取り専用の内容表示サーフェスなので、ダイアログと同様に不透明で保ちたい。

変更点

bg-backgroundbg-background-solid に差し替え。--background-solid はテーマ切替には追従するが vibrancy alpha の影響を受けないため、ダイアログ等と同じ扱いになる。

ファイル 対象
FileViewerContent.tsx HtmlPreviewWebview / 画像プレビュー コンテナ
SpreadsheetViewer.tsx シート本体のスクロールコンテナ
SpreadsheetDiffViewer.tsx 左右 DiffTable のスクロールコンテナ

動作確認

  • bun run lint:fix / bun run typecheck ともに pass
  • vibrancy OFF / ON の双方で、画像 / HTML / Excel / Excel diff の背景が不透明のままであること
  • vibrancy ON で他のサーフェス (チャット・サイドバー・コードエディタ) は従来通り半透明維持

Closes #263

vibrancy ON 時に `--background` が rgba (半透明) になる仕様のまま、
6066d72 で FileViewer 系のサーフェスを `bg-white` 等から
`bg-background` に移行したため、Excel ビューア/Excel diff/画像プレビュー/
HTML プレビューの背景まで透過し下のウィンドウが透けて見えていた。

これらのサーフェスは読み取り専用のコンテンツ表示なので、
vibrancy の影響を受けないよう `bg-background-solid` に差し替えて
不透明な背景へ戻す。`--background-solid` はテーマ切替には追従しつつ
vibrancy alpha は適用されないため、ダイアログ等と同じ扱い。

対象:
- FileViewerContent: HtmlPreviewWebview / 画像プレビュー
- SpreadsheetViewer: シート本体コンテナ
- SpreadsheetDiffViewer: 左右 DiffTable
@MocA-Love
Copy link
Copy Markdown
Owner Author

@codex review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 17, 2026

Warning

Rate limit exceeded

@MocA-Love has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 20 minutes and 40 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 20 minutes and 40 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: aacb4ac6-44fe-4bf0-87c3-09629ffe5291

📥 Commits

Reviewing files that changed from the base of the PR and between b687357 and aa7c8a4.

📒 Files selected for processing (4)
  • README.md
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/FileViewerPane/components/FileViewerContent/FileViewerContent.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/FileViewerPane/components/SpreadsheetViewer/SpreadsheetDiffViewer.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/FileViewerPane/components/SpreadsheetViewer/SpreadsheetViewer.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/263-excel-raw-viewer-opaque

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@MocA-Love MocA-Love merged commit 02fb002 into main Apr 17, 2026
14 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.

[bug] ExcelのDifffやFile viewerのバグ

1 participant