capacitor-community / capacitor-community/electron

Splash screen in v5 seems to be broken

Open
#280 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
398
Forks
63
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
After updating to 5.0.1 the splash screen is nearly blank. But after taking a closer look the splash.png is in the upper left corner, but super tiny.

**To Reproduce**
Steps to reproduce the behavior:

1. update to v5
2. config a splash screen
3. yarn cap open @capacitor-community/electron

**Expected behavior**
Show the spash.png filling the view.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

- OS: Ubuntu
- Version 23.10

**Additional context**

I guess this change is leading to this behaviour: https://github.com/capacitor-community/electron/blame/f7ce86454469e967b41c1db8f51ddb942d278ca9/src/electron-platform/ElectronSplashScreen.ts#L48

I also played around with the before and after html snippets an ran in the same issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.