Skip to content

Commit 35782bd

Browse files
committed
1 parent ce5309f commit 35782bd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

chatgpt/chatgpt-auto-refresh/chatgpt-auto-refresh.user.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
// @description:zu *NGOKUPHEPHA* susa ukusetha kabusha ingxoxo yemizuzu eyi-10 + amaphutha enethiwekhi ahlala njalo + Ukuhlolwa kwe-Cloudflare ku-ChatGPT.
221221
// @author Adam Lui
222222
// @namespace https://github.com/adamlui
223-
// @version 2025.5.13.3
223+
// @version 2025.5.13.4
224224
// @license MIT
225225
// @icon https://assets.chatgptautorefresh.com/images/icons/openai/black/icon48.png?v=f11a0a8
226226
// @icon64 https://assets.chatgptautorefresh.com/images/icons/openai/black/icon64.png?v=f11a0a8
@@ -796,14 +796,14 @@
796796
// Init toggle elems
797797
this.div = dom.create.elem('div', { class: this.class })
798798
this.navicon = dom.create.elem('img')
799-
this.toggleLabel = dom.create.elem('label')
800799
this.toggleInput = dom.create.elem('input')
800+
this.toggleLabel = dom.create.elem('label')
801801
this.switchSpan = dom.create.elem('span')
802802
this.knobSpan = dom.create.elem('span')
803803

804804
// Assemble elems into parent div
805805
this.switchSpan.append(this.knobSpan)
806-
this.div.append(this.navicon, this.toggleInput, this.switchSpan, this.toggleLabel)
806+
this.div.append(this.navicon, this.toggleInput, this.toggleLabel, this.switchSpan)
807807

808808
// Stylize elems
809809
this.stylize() // create/append stylesheet
@@ -851,7 +851,6 @@
851851
position: relative ; width: 30px ; height: 15px ; border-radius: 28px ;
852852
background-color: var(--switch-disabled-bg-color) ;
853853
bottom: ${ firstLink ? '0.5px' : '-0.15em' } ;
854-
left: ${ env.browser.isMobile || firstLink ? 169 : 160 }px ;
855854
transition: 0.4s ; -webkit-transition: 0.4s ; -moz-transition: 0.4s ;
856855
-o-transition: 0.4s ; -ms-transition: 0.4s }
857856
.${this.class} > span.enabled { /* switch on */
@@ -869,14 +868,14 @@
869868
background-color: var(--switch-disabled-bg-color) ; box-shadow: none }
870869
.${this.class} > span > span { /* knob span */
871870
position: absolute ; width: 12px ; height: 12px ; content: "" ; border-radius: 28px ;
872-
background-color: white ; left: 3px ; bottom: 1.25px ;
871+
background-color: white ; left: -3px ; bottom: 1.25px ;
873872
box-shadow: var(--knob-box-shadow) ;
874873
-webkit-box-shadow: var(--knob-box-shadow) ; -moz-box-shadow: var(--knob-box-shadow) ;
875874
transition: 0.4s ; -webkit-transition: 0.4s ; -moz-transition: 0.4s ;
876875
-o-transition: 0.4s ; -ms-transition: 0.4s }
877876
.${this.class} > label { /* toggle label */
878877
cursor: pointer ; overflow: hidden ; text-overflow: ellipsis ; white-space: nowrap ;
879-
color: black ; width: 153px ; margin-left: -22px ;
878+
color: black ; padding: 0 12px ; flex-grow: 1 ;
880879
${ firstLink ? 'font-size: var(--text-sm)' : 'font-size: 0.875rem ; font-weight: 600' }}`
881880

882881
// Dark scheme mods

0 commit comments

Comments
 (0)