Skip to content

Commit 08e6a88

Browse files
authored
Expand sticky issue toolbar to full width, fix for new PR toolbar (#50)
1 parent c1b39bf commit 08e6a88

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "GitHub Center",
55
"author": "Katsute",
66
"description": "Center navigation on large viewports",
7-
"version": "4.0",
7+
"version": "4.1",
88
"homepage_url": "https://github.com/KatsuteDev/GitHub-Center",
99
"icons": {
1010
"16": "icon16.png",

src/style.css

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,38 @@ body:not(.project-page) #repo-content-turbo-frame > div:not(#repo-content-pjax-c
2929
}
3030

3131
@media (min-width: 1400px) and (max-width: 2800px) {
32-
.pr-toolbar.position-stuck {
32+
.pr-toolbar.position-stuck, [class*=" PullRequestFilesToolbar-module__is-stuck"] {
3333
margin-left: calc(-50dvw + 635px) !important;
3434
margin-right: calc(-50dvw + 635px) !important;
3535
}
36+
37+
[data-testid="issue-metadata-sticky"] {
38+
width: calc(100dvw - 20px) !important
39+
}
3640
}
3741

3842
@media(min-width: 2800px){
39-
.pr-toolbar.position-stuck {
43+
.pr-toolbar.position-stuck, [class*=" PullRequestFilesToolbar-module__is-stuck"] {
4044
margin-left: calc(-50dvw + 660px) !important;
4145
margin-right: calc(-50dvw + 660px) !important;
4246
}
47+
48+
[data-testid="issue-metadata-sticky"] {
49+
width: calc(100dvw - 40px) !important
50+
}
4351
}
4452

4553
.pr-toolbar.position-stuck > div {
4654
width: 100%;
4755
max-width: 1280px;
4856
margin-left: auto;
4957
margin-right: auto;
58+
}
59+
60+
[class*=" PullRequestFilesToolbar-module__is-stuck"] > div:first-of-type {
61+
margin-left: calc(50dvw - 670px) !important;
62+
}
63+
64+
[class*=" PullRequestFilesToolbar-module__is-stuck"] > div:last-of-type {
65+
margin-right: calc(50dvw - 670px) !important;
5066
}

0 commit comments

Comments
 (0)