Skip to content

Commit ec0b024

Browse files
authored
website: Fix cell size for e learning by setting minimum size (#3659)
* fix cell size for e learning by setting minimum size * change min to 1 from 2
1 parent 61829ad commit ec0b024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/src/views/timetable/TimetableRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const TimetableRow: React.FC<Props> = (props) => {
4040
const startIndex = convertTimeToIndex(lesson.startTime);
4141
const endIndex = convertTimeToIndex(lesson.endTime);
4242

43-
const size = endIndex - startIndex;
43+
const size = Math.max(endIndex - startIndex, 1);
4444

4545
const dirStyle = verticalMode ? 'top' : 'marginLeft';
4646
const sizeStyle = verticalMode ? 'height' : 'width';

0 commit comments

Comments
 (0)