File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -640,15 +640,17 @@ def create_single_week( # noqa: PLR0912, PLR0915
640640
641641 for col in range (col_width ):
642642 for row in range (row_width ):
643- event_scale = 0.85 if num_rows == 3 else 1.0 # noqa: PLR2004
643+ event_scale = 0.85 if num_rows == 3 else 1.1 # noqa: PLR2004
644644
645645 # work out extra translation required
646646 translate_x = base_x + row * cell_width + cell_width / 2
647647 translate_y = base_y + col * cell_height + cell_height / 2 + DAY_TEXT_HEIGHT / 2
648648
649- # when 3 rows, events are too low
649+ # events are slightly too low
650650 if num_rows == 3 : # noqa: PLR2004
651651 translate_y -= cell_height / 20
652+ else :
653+ translate_y -= cell_height / 30
652654
653655 # if spanning multiple columns, pull towards centre
654656 pull_y = 0 if col_width == 1 else pull_factor
You can’t perform that action at this time.
0 commit comments