Skip to content

Commit

Permalink
fix: timeline chapter indicators not scaling appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasklaen committed Oct 22, 2023
1 parent 4123cbe commit 6e19bee
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/uosc/elements/Timeline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,8 @@ 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 = foreground_size < 3 and foreground_size or self.chapter_size
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_hovered = diamond_radius * 2
local diamond_border = options.timeline_border and math.max(options.timeline_border, 1) or 1

Expand Down

0 comments on commit 6e19bee

Please sign in to comment.