Commit Graph

4 Commits

Author SHA1 Message Date
面条
b800869aa5 refactor: improve image dimension inference logic
Enhances the algorithm for extracting image dimensions from Telegram widget styles by introducing a more robust fallback mechanism. Previously relied on partial style matching which could miss dimension data encoded across multiple DOM elements.

Now checks wrapper elements and padding-top percentage ratios more systematically to synthesize layout dimensions when explicit width/height are unavailable. This ensures more reliable image aspect ratio calculation for content rendering.

Also clarifies error messages in the sync workflow and updates code comments from Chinese to English for better maintainability.
2026-03-27 13:46:55 +08:00
ccbikai
bcc27cf219 chore: update usernames and references
Updates social media handles, repository links, and funding references from old username to new one across configuration files, documentation, and layouts.
2025-12-07 15:32:13 +08:00
ccbikai
58be3f399c chore: eslint fix and upgrade dependencies 2024-08-31 16:29:02 +08:00
Haotian Chen
d787f6871c feat: automatic sync upstream using Github Actions
After forking the project, due to the limitations imposed by GitHub, you need to manually enable Workflows and Upstream Sync Action on the Actions page of the forked project.
2024-08-08 21:08:46 +08:00