Skip to content
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

Fix svg styling and image scaling #1699

Merged
merged 7 commits into from
Dec 27, 2024
Merged

Conversation

Kuuuube
Copy link
Member

@Kuuuube Kuuuube commented Dec 26, 2024

Fixes some of the styling issues with svgs displaying wrong (mostly reverting incorrectly removed code from #1487). This doesn't entirely fix the styling since there are some differences between canvases and images that need entirely new css. For example the numbering svgs in 三省堂国語辞典 第八版 are still kindof inverted and weird color.

Fixes image scaling causing very low quality and grainy images. Scaling a canvas is apparently a horrible thing to do and causes lots of trouble (and attempting to fix this directly has many inconsistencies across browsers) so it is best if the images displayed within them are resized beforehand (851280f).

@Kuuuube Kuuuube added kind/bug The issue or PR is regarding a bug area/ui-ux The issue or PR is related to UI/UX/Design regression This issue or PR is related to a regression labels Dec 26, 2024
@Kuuuube Kuuuube requested a review from a team as a code owner December 26, 2024 23:04
@Kuuuube Kuuuube added this pull request to the merge queue Dec 27, 2024
Merged via the queue into yomidevs:master with commit 5c409b9 Dec 27, 2024
11 checks passed
@Kuuuube Kuuuube deleted the fix-svg-coloring branch December 27, 2024 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui-ux The issue or PR is related to UI/UX/Design kind/bug The issue or PR is regarding a bug regression This issue or PR is related to a regression
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants