mirror of
https://github.com/stablyai/orca.git
synced 2026-10-19 08:03:13 +00:00
fix(browser): default webview background to white
Sites that don't set an html/body background (e.g. httpbin.org/html) were showing Orca's dark chrome through the transparent webview host. Real browsers paint the viewport white by default; sites with their own background still override this. Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -933,7 +933,11 @@ function BrowserPagePane({
|
||||
webview.style.width = '100%'
|
||||
webview.style.height = '100%'
|
||||
webview.style.border = 'none'
|
||||
webview.style.background = 'transparent'
|
||||
// Why: default to white so sites that don't set an html/body background
|
||||
// (e.g. httpbin.org/html) don't show through to Orca's dark chrome. Real
|
||||
// browsers paint the viewport white by default; sites that specify their
|
||||
// own background (including dark ones) still override this.
|
||||
webview.style.background = '#ffffff'
|
||||
webviewRegistry.set(browserTab.id, webview)
|
||||
container.appendChild(webview)
|
||||
needsInitialNavigation = true
|
||||
|
||||
Reference in New Issue
Block a user