Skip to content

Commit b88330a

Browse files
committed
1 parent 35782bd commit b88330a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

chatgpt/autoclear-chatgpt-history/autoclear-chatgpt-history.user.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
// @description:zu Ziba itshala lokucabanga okuzoshintshwa ngokuzenzakalelayo uma ukubuka chatgpt.com
226226
// @author Adam Lui
227227
// @namespace https://github.com/adamlui
228-
// @version 2025.5.13.3
228+
// @version 2025.5.14
229229
// @license MIT
230230
// @icon https://assets.autoclearchatgpt.com/images/icons/openai/black/icon48.png?v=f461c06
231231
// @icon64 https://assets.autoclearchatgpt.com/images/icons/openai/black/icon64.png?v=f461c06
@@ -798,14 +798,14 @@
798798
// Init toggle elems
799799
this.div = dom.create.elem('div', { class: this.class })
800800
this.navicon = dom.create.elem('img')
801-
this.toggleLabel = dom.create.elem('label')
802801
this.toggleInput = dom.create.elem('input')
802+
this.toggleLabel = dom.create.elem('label')
803803
this.switchSpan = dom.create.elem('span')
804804
this.knobSpan = dom.create.elem('span')
805805

806806
// Assemble elems into parent div
807807
this.switchSpan.append(this.knobSpan)
808-
this.div.append(this.navicon, this.toggleInput, this.switchSpan, this.toggleLabel)
808+
this.div.append(this.navicon, this.toggleInput, this.toggleLabel, this.switchSpan)
809809

810810
// Stylize elems
811811
this.stylize() // create/append stylesheet
@@ -860,7 +860,6 @@
860860
position: relative ; width: 30px ; height: 15px ; border-radius: 28px ;
861861
background-color: var(--switch-disabled-bg-color) ;
862862
bottom: ${ firstLink ? '0.5px' : '-0.15em' } ;
863-
left: ${ env.browser.isMobile || firstLink ? 169 : 160 }px ;
864863
transition: 0.4s ; -webkit-transition: 0.4s ; -moz-transition: 0.4s ;
865864
-o-transition: 0.4s ; -ms-transition: 0.4s }
866865
.${this.class} > span.enabled { /* switch on */
@@ -878,14 +877,14 @@
878877
background-color: var(--switch-disabled-bg-color) ; box-shadow: none }
879878
.${this.class} > span > span { /* knob span */
880879
position: absolute ; width: 12px ; height: 12px ; content: "" ; border-radius: 28px ;
881-
background-color: white ; left: 3px ; bottom: 1.25px ;
880+
background-color: white ; left: -3px ; bottom: 1.25px ;
882881
box-shadow: var(--knob-box-shadow) ;
883882
-webkit-box-shadow: var(--knob-box-shadow) ; -moz-box-shadow: var(--knob-box-shadow) ;
884883
transition: 0.4s ; -webkit-transition: 0.4s ; -moz-transition: 0.4s ;
885884
-o-transition: 0.4s ; -ms-transition: 0.4s }
886885
.${this.class} > label { /* toggle label */
887886
cursor: pointer ; overflow: hidden ; text-overflow: ellipsis ; white-space: nowrap ;
888-
color: black ; width: 153px ; margin-left: -22px ;
887+
color: black ; padding: 0 12px ; flex-grow: 1 ;
889888
${ firstLink ? 'font-size: var(--text-sm)' : 'font-size: 0.875rem ; font-weight: 600' }}`
890889

891890
// Dark scheme mods

0 commit comments

Comments
 (0)