app
Fusion - the Fusion 360 Bridge
Public Made by Adomby adom
Drive Autodesk Fusion 360 from the cloud via Adom Bridge: component libraries, IPC package generation, board layout, exports (STEP/Gerbers/BOM/CPL), fast APS cloud search, and parametric modeling.
← Commit history
bin/fusion-dashboard⋯ 1 unchanged line ⋯
dashboard/ui/index.html+8−2@@ -158,7 +158,7 @@ dialog.settings{max-width:560px;max-height:70vh;overflow:auto;padding:18px} <div id="prompts"></div> </main> -<dialog id="dlgSettings" class="settings">+<dialog id="dlgSettings" class="settings" tabindex="-1"> <h2 style="margin:0 0 14px">Fusion Dashboard Settings</h2> <div class="settings-card">@@ -300,7 +300,13 @@ $('#btnSettings').onclick=async()=>{ $('#stBadge').className='card-status'+(bd?' ok':''); $('#inpPart').value=dashSettings.demoPart||'aravk/in-s63btg'; $('#stPart').textContent=(dashSettings.demoPart||'').split('/').pop().toUpperCase();- $('#dlgSettings').showModal();+ const dlg=$('#dlgSettings');+ dlg.showModal();+ // showModal() autofocuses the first focusable child; ours is the wiki-part INPUT in the last+ // card, so the modal opened scrolled to the bottom. Focus the dialog itself and pin to top.+ dlg.focus();+ dlg.scrollTop=0;+ requestAnimationFrame(()=>{dlg.scrollTop=0;}); }; $('#btnCloseSettings').onclick=()=>$('#dlgSettings').close(); function wireToggle(sel,actionName,label){$(sel).onclick=async(e)=>{