-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error changing logo to SVG with prefers-color-scheme styling #29326
Comments
Dirty workaround that works for us: use svg file version with |
Sounds like a bug in fabric, could try v6 beta by changing https://github.com/fabricjs/fabric.js?tab=readme-ov-file#migrating-to-v6 |
After switching to
BTW: shouldn't gitea use |
Sounds like there are API changes, but we can adapt. Can you share a minimal full SVG that reproduces the error?
|
This SVG fails:
Then remove
and it works fine.
For reproducibility & security consider using only dependency versions that are stored in |
It's a bug in #29334 will upgrade us to fabric v6, which is good to do in any case.
Can't have unstable native dependencies like |
Upgrade fabric to latest v6 beta. It works for our use case, even thought it does not fix the upstream issue fabricjs/fabric.js#9679 that #29326 relates to.
Bug is confirmed and one workaround may be to remove the |
Upgrade fabric to latest v6 beta. It works for our use case, even thought it does not fix the upstream issue fabricjs/fabric.js#9679 that go-gitea/gitea#29326 relates to. (cherry picked from commit c4b0cb4d0d527793296cf801e611f77666f86551) Conflicts: public/assets/img/favicon.svg public/assets/img/logo.svg
Upstream merge was fixed, waiting for next (beta) release. |
Fixes #29326 because it includes fabricjs/fabric.js#9707.
Fixes go-gitea/gitea#29326 because it includes fabricjs/fabric.js#9707. (cherry picked from commit a9e5706696f7d593e281d33783877b7772e48e19)
Description
When changing logo to SVG file that contains dark mode styling i.e.
make generate-images
throws error likeNo such problem when
is removed from svg file.
Gitea Version
1.21.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Compiled from source.
Database
None
The text was updated successfully, but these errors were encountered: