Skip to content

Commit 579aadd

Browse files
committed
scaled up circles in a single week
1 parent 5c29ad7 commit 579aadd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

exec/publicity.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)