Skip to content

Commit

Permalink
Linter fixes for the example. Fix the toast running offscreen
Browse files Browse the repository at this point in the history
Thomas101 committed Oct 24, 2024
1 parent c93e2bf commit 1e6c11f
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/extension/background.cjs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
chrome.sidePanel.setPanelBehavior({ openPanelOnActionClick: true })
chrome.sidePanel.setPanelBehavior({ openPanelOnActionClick: true })
1 change: 0 additions & 1 deletion examples/extension/sidepanel.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const ai = require('aibrow-extension').default
window.__ai=ai

const $model = document.getElementById('model')
const $streaming = document.getElementById('streaming')
14 changes: 8 additions & 6 deletions examples/playground/index.html
Original file line number Diff line number Diff line change
@@ -288,12 +288,14 @@
</div>
</div>

<div id="model-download-toast" class="toast align-items-center text-white bg-primary border-0" role="alert">
<div class="d-flex">
<div class="toast-body">
<div><span class='fw-bold'>Downloading model</span> <span data-render="model-name"></span></div>
<div class="progress mt-3" role="progressbar">
<div class="progress-bar" style="width: 0%" data-render="progress"></div>
<div class="position-fixed bottom-0 start-0 p-3" style="z-index: 11">
<div id="model-download-toast" class="toast hide align-items-center text-white bg-primary border-0" role="alert">
<div class="d-flex">
<div class="toast-body w-100">
<div><span class='fw-bold'>Downloading model</span> <span data-render="model-name"></span></div>
<div class="progress mt-3" role="progressbar">
<div class="progress-bar" style="width: 0%" data-render="progress"></div>
</div>
</div>
</div>
</div>

0 comments on commit 1e6c11f

Please sign in to comment.