improvement(canvas): improve code tooltip readability

Merged
WA
2mo ago
+22-9

Summary

  • Add line numbers and wrapped code to canvas code previews
  • Match terminal gutter spacing and keep wider tooltips viewport-safe

Type of Change

  • Improvement

Testing

  • Tested manually in the browser with a Function block and multi-line JavaScript
  • bun run lint
  • bun run check:audits
  • bun run test and bun run type-check in the affected packages

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)