Code & Deploy
siGit Code
Git Hosting
Toggle menu
siGit Code
Git Hosting
Sign in
Sign in
@devries-cameron20
/
t3code-1
Fork
0
The best way to control Claude Code, Codex and more from any computer or phone
t3code-1
/
apps
/
mobile
/
src
/
features
/
pull-requests
/
pullRequestTabScroll.ts
Code
Commits
Issues
Pulls
Cloud Agent
CICD
main
main
ts
7 lines
201 Bytes
Copy permalink
Copy
Raw
1
export
function
pullRequestTabOffset
(
2
current
:
number
,
3
saved
:
number
|
undefined
,
4
headerEnd
:
number
,
5
)
{
6
return
current
<
headerEnd
-
0.5
?
current
:
Math
.
max
(
headerEnd
,
saved
??
headerEnd
);
7
}