[PR #5855] [MERGED] chore: improve api error page #31879

Closed
opened 2026-04-17 22:45:22 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5855
Author: @bytaesu
Created: 11/8/2025
Status: Merged
Merged: 11/9/2025
Merged by: @Bekacru

Base: canaryHead: 2025-11-09/fix/error-page


📝 Commits (1)

  • 046fbfd fix: improve api error page

📊 Changes

1 file changed (+82 additions, -31 deletions)

View changed files

📝 packages/better-auth/src/api/routes/error.ts (+82 -31)

📄 Description

  • Responsive layout
  • System theme support
  • ... other visual improvements

https://github.com/user-attachments/assets/8ef73278-11cf-4e3e-81e5-1e3ccfdf87d7


Summary by cubic

Revamps the API error page with a responsive layout, system dark-mode support, and clearer typography to prevent overflow and improve readability. Adds subtle visual polish while continuing to respect custom theme tokens.

  • New Features
    • Responsive layout and vertical scrolling; mobile text scaling; buttons and badges wrap to avoid overflow.
    • System theme support (prefers-color-scheme: dark) with tokens for background/foreground/border; respects custom colors.
    • Clearer presentation with tighter padding, adjusted heading sizes/weights, stronger separators, and improved spacing.
    • Visual polish: softer, larger grid background with a subtle radial mask; smaller corner accents; long error codes/messages wrap safely.

Written for commit 046fbfd322. Summary will update automatically on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/5855 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 11/8/2025 **Status:** ✅ Merged **Merged:** 11/9/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `2025-11-09/fix/error-page` --- ### 📝 Commits (1) - [`046fbfd`](https://github.com/better-auth/better-auth/commit/046fbfd3226f5b26b9450200f135effe279ed54c) fix: improve api error page ### 📊 Changes **1 file changed** (+82 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/error.ts` (+82 -31) </details> ### 📄 Description - Responsive layout - System theme support - ... other visual improvements https://github.com/user-attachments/assets/8ef73278-11cf-4e3e-81e5-1e3ccfdf87d7 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Revamps the API error page with a responsive layout, system dark-mode support, and clearer typography to prevent overflow and improve readability. Adds subtle visual polish while continuing to respect custom theme tokens. - New Features - Responsive layout and vertical scrolling; mobile text scaling; buttons and badges wrap to avoid overflow. - System theme support (prefers-color-scheme: dark) with tokens for background/foreground/border; respects custom colors. - Clearer presentation with tighter padding, adjusted heading sizes/weights, stronger separators, and improved spacing. - Visual polish: softer, larger grid background with a subtle radial mask; smaller corner accents; long error codes/messages wrap safely. <sup>Written for commit 046fbfd3226f5b26b9450200f135effe279ed54c. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-17 22:45:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#31879