Skip to content

Feature/binary converter text improvements#432

Open
Arnav2525 wants to merge 2 commits intomainfrom
feature/binary-converter-text-improvements
Open

Feature/binary converter text improvements#432
Arnav2525 wants to merge 2 commits intomainfrom
feature/binary-converter-text-improvements

Conversation

@Arnav2525
Copy link
Collaborator

  1. Binary Converter Validation Fix
    File:
    frontend/src/components/BinaryConverter.tsx

Problem: The "Invalid" error message appeared immediately when the page loaded, before users could even type anything.

Solution: Modified validation logic to only display "Invalid" when there's actual invalid input, not when the field is empty.

{binary === "" ? "" : (dec === undefined || isNaN(dec) ? "Invalid" : dec)}
Impact: Better first impression for students - no confusing error messages on page load.

  1. Responsive Text Sizing
    Files:

frontend/src/components/BinaryConverter.tsx
frontend/src/pages/BookPage.tsx
Problem: Text was too small (12px) on larger screens due to inheriting text-xs from parent containers.

Solution: Added responsive text sizing classes:

Binary Converter: text-lg md:text-xl xl:text-2xl (18px → 24px)
Book Content Panel: text-base md:text-lg lg:text-xl xl:text-2xl (16px → 24px)

…' message when input field is empty\n- Add responsive text sizing to Binary Converter (text-lg md:text-xl xl:text-2xl)\n- Add responsive text sizing to book content panel (text-base md:text-lg lg:text-xl xl:text-2xl)\n- Improve readability across all screen sizes
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.

2 participants