feat(mobile): bouton assistant AI central dans la barre du bas
CI / lint (push) Successful in 57s
CI / security (push) Successful in 39s
CI / test (push) Successful in 1m16s
CI / build (push) Successful in 43s
CI / e2e (push) Successful in 19m16s
Desktop Build / build-windows (push) Canceled after 0s
Desktop Build / build-linux (push) Canceled after 0s
CI / lint (push) Successful in 57s
CI / security (push) Successful in 39s
CI / test (push) Successful in 1m16s
CI / build (push) Successful in 43s
CI / e2e (push) Successful in 19m16s
Desktop Build / build-windows (push) Canceled after 0s
Desktop Build / build-linux (push) Canceled after 0s
Sur mobile, la pastille flottante etait masquee par la barre d'outils. - Masque .ai-fab sur mobile - Ajoute un bouton rond sureleve #mt-ai au centre de la barre (5 items) - Extrait openAssistant() dans ai-fab.js (reutilise par la FAB et le bouton mobile) - mobile-toolbar.js : branche le bouton sur openAssistant()
This commit is contained in:
@@ -23,7 +23,10 @@ function syncVisibility() {
|
||||
_fab.setAttribute('aria-label', label);
|
||||
}
|
||||
|
||||
async function onClick() {
|
||||
// Shared entry point used by the floating FAB and the mobile toolbar button.
|
||||
// Reopens a collapsed panel, otherwise opens (or re-focuses) the assistant
|
||||
// for the current application context.
|
||||
export async function openAssistant() {
|
||||
const panel = document.querySelector('.bookslm-panel');
|
||||
// Collapsed panel: reveal it instead of reopening.
|
||||
if (panel && panel.classList.contains('open') && panel.classList.contains('hidden')) {
|
||||
@@ -34,6 +37,10 @@ async function onClick() {
|
||||
await booksLM.openForCurrentContext();
|
||||
}
|
||||
|
||||
async function onClick() {
|
||||
await openAssistant();
|
||||
}
|
||||
|
||||
export function initAIFab() {
|
||||
if (_fab) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user