Skip to content

Conversation

@Miodec
Copy link
Member

@Miodec Miodec commented Jan 25, 2026

AI goes BRRRRRR

this moves fonts and fontawesome back to layers where they belong.

Thirds time the charm.

Copilot AI review requested due to automatic review settings January 25, 2026 18:02
@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label Jan 25, 2026
@Miodec Miodec changed the title fix: screenshots not supporting css @layers fix: screenshots not supporting css @layers (@miodec) Jan 25, 2026
@github-actions github-actions bot added the waiting for review Pull requests that require a review before continuing label Jan 25, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes screenshot generation issues with CSS @layers by implementing font embedding with data URLs, allowing fonts and FontAwesome to be properly placed within CSS layers.

Changes:

  • Added font embedding utilities that extract @font-face rules from layers, convert font URLs to data URLs, and inject them into screenshots
  • Moved FontAwesome import back into @layer vendor (previously outside layers)
  • Moved fonts import back into @layer custom-styles (previously outside layers)

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.

File Description
frontend/src/ts/test/test-screenshot.ts Added font embedding logic to extract and embed font files as data URLs for screenshot generation, replacing the previous workaround of keeping fonts outside CSS layers
frontend/src/styles/vendor.scss Moved FontAwesome import into @layer vendor and removed explicit hidden/invisible overrides (now handled by the hidden layer)
frontend/src/styles/index.scss Moved fonts import into @layer custom-styles

Miodec and others added 3 commits January 25, 2026 19:07
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Miodec Miodec merged commit 2635d12 into master Jan 25, 2026
13 checks passed
@Miodec Miodec deleted the fix-screenshot-3 branch January 25, 2026 18:11
fehmer added a commit that referenced this pull request Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff waiting for review Pull requests that require a review before continuing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants