Skip to content

Conversation

@N1qro
Copy link
Collaborator

@N1qro N1qro commented Aug 19, 2025

This pull request focuses on improving UI readability and code consistency in the lesson card and home page components. The most important changes include truncating long teacher names for better display, cleaning up formatting and structure in the home page, and making minor import adjustments.

UI Improvements:

  • Truncated the display of long teacher names in the LessonCard component to a maximum of 30 characters and added a tooltip to show the full name on hover. This prevents overflow and maintains a clean card layout. (src/client/plugin/components/LessonCard.tsx)

Code Formatting and Structure:

  • Cleaned up conditional rendering and formatting in the home page, including simplifying the ternary logic for displaying conflicts and fixing indentation for better readability. (src/client/plugin/pages/home/index.tsx) [1] [2]
  • Improved the mapping logic for conflict groups by adjusting the structure and indentation of the rendered elements. (src/client/plugin/pages/home/index.tsx)
  • Removed unnecessary blank lines to enhance code clarity. (src/client/plugin/pages/home/index.tsx)

Minor Refactoring:

  • Removed the unused React import from the home page file, as it's no longer needed with modern React setups. (src/client/plugin/pages/home/index.tsx)

@N1qro N1qro self-assigned this Aug 19, 2025
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