Skip to content

Comments

Bugfix: Update Markers to % Base Calc#6323

Merged
WithoutPants merged 2 commits intostashapp:developfrom
Gykes:marker-issues
Nov 27, 2025
Merged

Bugfix: Update Markers to % Base Calc#6323
WithoutPants merged 2 commits intostashapp:developfrom
Gykes:marker-issues

Conversation

@Gykes
Copy link
Collaborator

@Gykes Gykes commented Nov 27, 2025

Fixes range markers (markers with end times) displaying at incorrect positions in fullscreen mode. The issue was that range markers used fixed pixel positioning calculated at render time, which didn't scale when the player resized. Changed to percentage-based calc() positioning to match how dot markers work. Added in a bunch of comments so I could track my math lol.

Tested on my Mac with Waterfox:
Created a marker at 1sec-10minutes. Pre fix there was an offset due to the bug. After the fix the marker was in the expected location when going fullscreen.

Fixes #6286

@Gykes Gykes requested a review from WithoutPants November 27, 2025 01:52
@smith113-p
Copy link
Contributor

Why not use min-width for the 8px min width, to slightly simplify the calc expression?

@Gykes
Copy link
Collaborator Author

Gykes commented Nov 27, 2025

Because I am a complicated person who hates CSS lol. You are not wrong tho, can change it over.

@WithoutPants WithoutPants added the bug Something isn't working label Nov 27, 2025
@WithoutPants WithoutPants added this to the Version 0.30.0 milestone Nov 27, 2025
@WithoutPants WithoutPants merged commit 4ef3a60 into stashapp:develop Nov 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong Marker position on full screen

3 participants