Skip to content
This repository was archived by the owner on Jul 13, 2025. It is now read-only.

Commit 8b85b77

Browse files
committed
fix: fix controller style
1 parent a346778 commit 8b85b77

File tree

2 files changed

+63
-59
lines changed

2 files changed

+63
-59
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "youtube-shorts-controller",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Youtube Shorts Controller",
55
"main": "index.js",
66
"repository": "https://github.com/misa198/youtube-shorts-controller/tree/master",

src/styles/content.scss

Lines changed: 62 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -2,82 +2,86 @@
22
opacity: 0 !important;
33
}
44

5-
.reel-video-in-sequence.style-scope.ytd-shorts > #player-container {
6-
position: relative !important;
5+
.reel-video-in-sequence.style-scope.ytd-shorts {
6+
#player-container {
7+
position: relative !important;
78

8-
.mute-button {
9-
width: 36px;
10-
height: 36px;
11-
position: absolute !important;
12-
top: 16px;
13-
right: 16px;
14-
z-index: 11;
15-
cursor: pointer;
16-
17-
svg {
9+
.mute-button {
1810
width: 36px;
1911
height: 36px;
20-
fill: #fff;
12+
position: absolute !important;
13+
top: 16px;
14+
right: 16px;
15+
z-index: 11;
16+
cursor: pointer;
17+
18+
svg {
19+
width: 36px;
20+
height: 36px;
21+
fill: #fff;
22+
}
2123
}
22-
}
2324

24-
.processbar {
25-
position: absolute !important;
26-
top: 0 !important;
27-
left: 0 !important;
28-
width: 477px;
29-
height: 3px;
25+
.processbar {
26+
position: absolute !important;
27+
top: 0 !important;
28+
left: 0 !important;
29+
width: var(--ytd-shorts-player-width);
30+
min-width: var(--ytd-shorts-min-width);
31+
height: 3px;
3032

31-
&__container {
32-
position: relative;
33-
width: 100%;
34-
height: 100%;
35-
}
33+
&__container {
34+
position: relative;
35+
width: 100%;
36+
height: 100%;
37+
}
3638

37-
&__thumb {
38-
position: absolute;
39-
height: 100%;
40-
background-color: #c00;
41-
transition: width 0.1s;
39+
&__thumb {
40+
position: absolute;
41+
height: 100%;
42+
background-color: #c00;
43+
transition: width 0.1s;
44+
}
4245
}
43-
}
4446

45-
#shorts-controller-overlay {
46-
position: absolute;
47-
top: 0;
48-
left: 0;
49-
background: rgba(0, 0, 0, 0.5);
50-
z-index: 10;
51-
width: 477px;
52-
height: 848px;
53-
display: flex;
54-
justify-content: center;
55-
align-items: center;
56-
opacity: 0;
57-
transition: opacity 0.3s ease-in-out;
58-
59-
.shorts-controller {
60-
width: 100%;
47+
#shorts-controller-overlay {
48+
position: absolute;
49+
top: 0;
50+
left: 0;
51+
background: rgba(0, 0, 0, 0.5);
52+
z-index: 10;
53+
width: var(--ytd-shorts-player-width);
54+
min-width: var(--ytd-shorts-min-width);
55+
height: 848px;
6156
display: flex;
6257
justify-content: center;
58+
align-items: center;
59+
opacity: 0;
60+
transition: opacity 0.3s ease-in-out;
6361

64-
&__buttons {
62+
.shorts-controller {
6563
width: 100%;
6664
display: flex;
6765
justify-content: center;
68-
align-items: center;
69-
}
7066

71-
&__button {
72-
width: 60px;
73-
height: 60px;
74-
margin-left: 10px;
75-
margin-right: 10px;
67+
&__buttons {
68+
width: 100%;
69+
display: flex;
70+
justify-content: center;
71+
align-items: center;
72+
}
73+
74+
&__button {
75+
width: 60px;
76+
height: 60px;
77+
margin-left: 10px;
78+
margin-right: 10px;
79+
}
7680
}
7781
}
78-
}
7982

80-
&:hover #shorts-controller-overlay {
81-
opacity: 1;
83+
&:hover #shorts-controller-overlay {
84+
opacity: 1;
85+
}
8286
}
8387
}

0 commit comments

Comments
 (0)