File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6735,13 +6735,24 @@ export async function onLoad() {
67356735 carpeaterInput . value = savedId ;
67366736 carpeaterInput . disabled = ! savedEnabled ; // Enable/disable input based on checkbox
67376737
6738+ // Update checkmark visibility on load
6739+ const checkmarkSvg = document . querySelector ( '.checkmark-svg' ) ;
6740+ if ( checkmarkSvg ) {
6741+ checkmarkSvg . style . opacity = savedEnabled ? '1' : '0' ;
6742+ }
6743+
67386744 // Checkbox toggle event
67396745 carpeaterCheckbox . addEventListener ( 'change' , ( e ) => {
67406746 const isEnabled = e . target . checked ;
67416747 carpeaterInput . disabled = ! isEnabled ;
67426748 localStorage . setItem ( 'carpeaterFilterEnabled' , isEnabled ) ;
67436749 debugLog ( `[SETTINGS] Carpeater filter ${ isEnabled ? 'enabled' : 'disabled' } ` ) ;
67446750
6751+ // Update checkmark visibility
6752+ if ( checkmarkSvg ) {
6753+ checkmarkSvg . style . opacity = isEnabled ? '1' : '0' ;
6754+ }
6755+
67456756 // Focus input when enabled
67466757 if ( isEnabled ) {
67476758 carpeaterInput . focus ( ) ;
Original file line number Diff line number Diff line change @@ -169,8 +169,8 @@ <h2 class="text-sm font-medium text-slate-300 uppercase tracking-wide">Settings<
169169 <!-- Custom styled checkbox -->
170170 < label class ="relative inline-flex items-center cursor-pointer ">
171171 < input type ="checkbox " id ="carpeaterFilterEnabled " class ="sr-only peer ">
172- < div class ="w-5 h-5 bg-slate-700 border border-slate-600 rounded peer-checked:bg-emerald-600 peer-checked:border-emerald-600 peer-focus:ring-2 peer-focus:ring-emerald-500 peer-focus:ring-offset-1 peer-focus:ring-offset-slate-800 transition-all flex items-center justify-center ">
173- < svg class ="w-3 h-3 text-white opacity-0 peer-checked: opacity-100 transition-opacity " fill ="none " stroke ="currentColor " viewBox ="0 0 24 24 ">
172+ < div class ="w-5 h-5 bg-slate-700 border border-slate-600 rounded peer-checked:bg-emerald-600 peer-checked:border-emerald-600 peer-focus:ring-2 peer-focus:ring-emerald-500 peer-focus:ring-offset-1 peer-focus:ring-offset-slate-800 transition-all flex items-center justify-center group ">
173+ < svg class ="w-3 h-3 text-white opacity-0 transition- opacity checkmark-svg " fill ="none " stroke ="currentColor " viewBox ="0 0 24 24 ">
174174 < path stroke-linecap ="round " stroke-linejoin ="round " stroke-width ="3 " d ="M5 13l4 4L19 7 "> </ path >
175175 </ svg >
176176 </ div >
You can’t perform that action at this time.
0 commit comments