We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61829ad commit ec0b024Copy full SHA for ec0b024
website/src/views/timetable/TimetableRow.tsx
@@ -40,7 +40,7 @@ const TimetableRow: React.FC<Props> = (props) => {
40
const startIndex = convertTimeToIndex(lesson.startTime);
41
const endIndex = convertTimeToIndex(lesson.endTime);
42
43
- const size = endIndex - startIndex;
+ const size = Math.max(endIndex - startIndex, 1);
44
45
const dirStyle = verticalMode ? 'top' : 'marginLeft';
46
const sizeStyle = verticalMode ? 'height' : 'width';
0 commit comments