这是indexloc提供的服务,不要输入任何密码
Skip to content

Move CSS from static file to Python module #58

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

Merged
merged 2 commits into from
Feb 19, 2025
Merged

Move CSS from static file to Python module #58

merged 2 commits into from
Feb 19, 2025

Conversation

aazuspan
Copy link
Owner

@aazuspan aazuspan commented Feb 19, 2025

Related issue

This is an indirect fix for #57, which resulted from unspecified encoding when reading the CSS file defaulting to gbk in some locales.

Description

Replace the static CSS file with a CSS constant that we can import. This gives a tiny one-time performance improvement, but more importantly simplifies some code. The downside is no editor support when editing the CSS.

Checklist

  • I have updated the CHANGELOG with any added features, changes, fixes, or removals.

This gives a tiny performance improvement, but more importantly
simplifies some code. The downside is no editor support when
editing the CSS.
@aazuspan aazuspan added the bug Something isn't working label Feb 19, 2025
@aazuspan aazuspan self-assigned this Feb 19, 2025
@aazuspan aazuspan merged commit f26a57c into main Feb 19, 2025
6 checks passed
@aazuspan aazuspan deleted the css-module branch February 19, 2025 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant