From 6d329f959baec26234ded81ea81335241dd7b1a0 Mon Sep 17 00:00:00 2001 From: tomasklaen Date: Thu, 9 Nov 2023 10:39:22 +0100 Subject: [PATCH] tweak: chapter indicator sizing --- src/uosc/elements/Timeline.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uosc/elements/Timeline.lua b/src/uosc/elements/Timeline.lua index ac021e37..6740eca4 100644 --- a/src/uosc/elements/Timeline.lua +++ b/src/uosc/elements/Timeline.lua @@ -261,7 +261,7 @@ function Timeline:render() -- Chapters local hovered_chapter = nil if (config.opacity.chapters > 0 and (#state.chapters > 0 or state.ab_loop_a or state.ab_loop_b)) then - local diamond_radius = math.min(foreground_size, self.chapter_size) + local diamond_radius = math.min(math.max(1, foreground_size * 0.8), self.chapter_size) local diamond_radius_hovered = diamond_radius * 2 local diamond_border = options.timeline_border and math.max(options.timeline_border, 1) or 1