Skip to content

Conversation

@zehfernandes
Copy link
Contributor

@zehfernandes zehfernandes commented Nov 6, 2025

CleanShot.2025-11-06.at.17.58.31.mp4

Summary by cubic

Polished the preview server topbar and icons for a cleaner look and better usability. Centers the view toggle, adds an animated dark mode toggle, and updates the sun/moon icons.

  • UI Improvements

    • Centered the view-mode toggle on large screens.
    • Moved the dark mode toggle before size controls and added a smooth moon/sun swap animation.
    • Updated sun and moon to stroked icons for visual consistency.
    • Preset highlight in size controls now checks width only, so it stays selected when height changes.
  • Bug Fixes

    • Fixed active state styling by using 'preview' instead of 'desktop' so the correct tab is highlighted.

Written for commit c5ca418. Summary will update automatically on new commits.

@changeset-bot
Copy link

changeset-bot bot commented Nov 6, 2025

🦋 Changeset detected

Latest commit: c5ca418

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@react-email/preview-server Patch
react-email Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Nov 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
react-email Ready Ready Preview Comment Nov 7, 2025 11:20am
react-email-demo Ready Ready Preview Comment Nov 7, 2025 11:20am

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 6, 2025

Open in StackBlitz

npm i https://pkg.pr.new/resend/react-email/@react-email/preview-server@2656

commit: c5ca418

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 6 files

Prompt for AI agents (all 1 issues)

Understand the root cause of the following 1 issues and fix them.


<file name="packages/preview-server/src/components/topbar/view-size-controls.tsx">

<violation number="1" location="packages/preview-server/src/components/topbar/view-size-controls.tsx:91">
This highlight should only appear when both width and height match the preset; otherwise the UI shows the preset as active even after customizing height.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

@gabrielmfern gabrielmfern changed the title feat: design updates on the preview server feat(preview-server): ui improvements Nov 7, 2025
@gabrielmfern gabrielmfern merged commit ef8702b into canary Nov 7, 2025
16 of 17 checks passed
@gabrielmfern gabrielmfern deleted the feat/polish-details-5.0 branch November 7, 2025 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants