Title: fix(emails): re-export the wordmark onto its original canvas by waleedlatif1 · Pull Request #6651 · simstudioai/sim · GitHub
Open Graph Title: fix(emails): re-export the wordmark onto its original canvas by waleedlatif1 · Pull Request #6651 · simstudioai/sim
X Title: fix(emails): re-export the wordmark onto its original canvas by waleedlatif1 · Pull Request #6651 · simstudioai/sim
Description: Summary #6648 shrank the email header wordmark by re-exporting the raster edge-to-edge at 168x80, replacing a 272x164 file whose mark was inset with padding. Same URL, different proportions — and that is what broke: every email already delivered keeps the width=68 height=41 it was sent with and refetches that URL forever, so it now stretches the new file's mark ~20% a client or proxy still holding the old bytes squashes them ~22% into the new 42x20 box — the squished logo visible on staging Re-export onto the original 272x164 canvas instead. The canvas shape is what old mail was measured against, so keeping it means one file serves old and new mail correctly and no URL has to change. The mark is now drawn at its own aspect (the previous asset was itself 3.9% squashed) and filled with the email palette's textBody, matching the landing navbar's --text-body. Header takes a 43x26 box, rendering 20.7px of ink — the landing navbar's rule (neighbouring text + 2px above and below) applied to 16px email body copy. A test pins the canvas, because that shape — not the display size — is what already-sent mail depends on. Retuning the display box alone stays safe. Type of Change Bug fix Testing vitest run lib/branding components/emails — 37 passing. Verified the new canvas guard goes red on exactly the #6648 mistake: swapping in the 168x80 export fails with expected { width: 168, height: 80 } to deeply equal { width: 272, height: 164 }. Measured the re-export: canvas 272x164 (identical to the historical asset), ink at aspect 2.06 against the outlines' true 2.08. Rendered the invitation email end-to-end: src=".../wordmark.png" width="43" height="26". tsgo --noEmit and biome clean. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)
Open Graph Description: Summary #6648 shrank the email header wordmark by re-exporting the raster edge-to-edge at 168x80, replacing a 272x164 file whose mark was inset with padding. Same URL, different proportions — and ...
X Description: Summary #6648 shrank the email header wordmark by re-exporting the raster edge-to-edge at 168x80, replacing a 272x164 file whose mark was inset with padding. Same URL, different proportions — and ...
Opengraph URL: https://github.com/simstudioai/sim/pull/6651
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:cf099649-a8aa-f18d-9822-63c6ae970ecd |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 98EC:2B8D95:B0A6AD:FA0BA0:6AFB5B76 |
| html-safe-nonce | d313ff12714f325a581fc1641c547c20aae870dfd5a2c4483a6e5bdc5179f835 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEVDOjJCOEQ5NTpCMEE2QUQ6RkEwQkEwOjZBRkI1Qjc2IiwidmlzaXRvcl9pZCI6IjM3MTEwMjIyOTAxMDAyNDc0MTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dc650c209ea7ff1e2e7a6385d224866b6e0b7bb53f20521cc554580a6fd70756 |
| hovercard-subject-tag | pull_request:4267218182 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/6651/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | Summary #6648 shrank the email header wordmark by re-exporting the raster edge-to-edge at 168x80, replacing a 272x164 file whose mark was inset with padding. Same URL, different proportions — and ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 59ef97164c52cf59bd10558ddec9c4f482763988 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width