fix(desktop): Excel diff/raw viewer を vibrancy でも不透明に戻す (#263)#266
fix(desktop): Excel diff/raw viewer を vibrancy でも不透明に戻す (#263)#266
Conversation
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
|
@codex review |
|
Warning Rate limit exceeded
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 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 configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Codex Review: Didn't find any major issues. Bravo. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
概要
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 時は--backgroundがrgba(..., var(--vibrancy-alpha))に差し替わるため、これらのサーフェスも巻き込まれて透過してしまっていた。コードエディタ / diff / ターミナル側はこのまま vibrancy の恩恵を受けさせたい一方、Excel / 画像 / HTML プレビューは読み取り専用の内容表示サーフェスなので、ダイアログと同様に不透明で保ちたい。
変更点
bg-backgroundをbg-background-solidに差し替え。--background-solidはテーマ切替には追従するが vibrancy alpha の影響を受けないため、ダイアログ等と同じ扱いになる。FileViewerContent.tsxHtmlPreviewWebview/ 画像プレビュー コンテナSpreadsheetViewer.tsxSpreadsheetDiffViewer.tsxDiffTableのスクロールコンテナ動作確認
bun run lint:fix/bun run typecheckともに passCloses #263