hotfix: enhance schedule handling with dynamic time slots and improed rendering #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request enhances the schedule table component by making its time range dynamic and improving the rendering of schedule items for better usability and visual consistency. The main changes include adding support for custom start and end hours, updating the time slot generation logic for flexibility, and improving text truncation and overflow handling in schedule cards.
Dynamic time range and time slot generation:
ScheduleTable.svelte,StudentHelper.ts: The schedule table now supports dynamic start and end hours via new props (startHourProp,endHourProp), and the time slot generation logic (createTimeSlot) has been refactored to use these values, allowing more flexible schedule displays. The time interval granularity is also now adjustable. [1] [2] [3]StudentTable.svelte: The schedule table is now rendered with explicitstartHourPropandendHourPropvalues, demonstrating the new dynamic time range feature.Visual and usability improvements:
CardSubject.svelte: Schedule card fields now usetruncateandoverflow-hiddenCSS classes to prevent text overflow and maintain layout integrity, especially for long subject names or details.ScheduleTable.svelte: Table styling has been improved for better column sizing and layout consistency, including removing fixed width on table cells and ensuring minimum width constraints. [1] [2]From this

To this
