parent
f33854b8a0
commit
8f4294fe09
|
|
@ -826,7 +826,7 @@ header{display:flex;align-items:center;justify-content:space-between;padding:0 1
|
||||||
<i data-lucide="arrow-left" style="width:11px;height:11px"></i>
|
<i data-lucide="arrow-left" style="width:11px;height:11px"></i>
|
||||||
戻る
|
戻る
|
||||||
</button>
|
</button>
|
||||||
<button class="btn-sm" type="button" @click="finishStepMode()" aria-label="学習フローを終了し理解度チェックへ">
|
<button class="btn-sm" type="button" @click="finishStepMode()" aria-label="学習フローを終了して通常画面に戻る">
|
||||||
<i data-lucide="check" style="width:11px;height:11px"></i>
|
<i data-lucide="check" style="width:11px;height:11px"></i>
|
||||||
学習フローを終了
|
学習フローを終了
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -824,18 +824,9 @@ document.addEventListener('alpine:init', () => {
|
||||||
this.$nextTick(()=>{ if(window.lucide) lucide.createIcons(); });
|
this.$nextTick(()=>{ if(window.lucide) lucide.createIcons(); });
|
||||||
},
|
},
|
||||||
finishStepMode(){
|
finishStepMode(){
|
||||||
if(document.activeElement && typeof document.activeElement.blur === 'function'){
|
|
||||||
document.activeElement.blur();
|
|
||||||
}
|
|
||||||
this.stepMode=false;
|
this.stepMode=false;
|
||||||
this.$nextTick(()=>{
|
this.$nextTick(()=>{
|
||||||
if(window.lucide) lucide.createIcons();
|
if(window.lucide) lucide.createIcons();
|
||||||
requestAnimationFrame(()=>{
|
|
||||||
requestAnimationFrame(()=>{
|
|
||||||
this.scrollMainToComprehension('auto');
|
|
||||||
setTimeout(()=>{ this.scrollMainToComprehension('auto'); }, 140);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
scrollToComprehension(){
|
scrollToComprehension(){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue