fix: Download transcript stays in the toolbar with its download icon (no empty round space); drawer keeps plain text Go back only
This commit is contained in:
parent
b9a70fd370
commit
e1f1a58917
3 changed files with 1 additions and 10 deletions
|
|
@ -16,7 +16,6 @@
|
||||||
<aside class="assistant-history">
|
<aside class="assistant-history">
|
||||||
<button id="btn-assistant-drawer-close" class="assistant-drawer-close" type="button" aria-label="Close saved chats"><i class="fas fa-xmark"></i></button>
|
<button id="btn-assistant-drawer-close" class="assistant-drawer-close" type="button" aria-label="Close saved chats"><i class="fas fa-xmark"></i></button>
|
||||||
<button id="btn-assistant-goback-rail" class="btn-sm btn-ghost assistant-goback-rail" type="button" title="Back to the main menu"><i class="fas fa-arrow-left"></i> Go back</button>
|
<button id="btn-assistant-goback-rail" class="btn-sm btn-ghost assistant-goback-rail" type="button" title="Back to the main menu"><i class="fas fa-arrow-left"></i> Go back</button>
|
||||||
<button id="btn-assistant-download-rail" class="assistant-rail-action" type="button">Download</button>
|
|
||||||
<button id="btn-assistant-create-image" class="assistant-create-image" type="button"><i class="fas fa-wand-magic-sparkles"></i> Create image</button>
|
<button id="btn-assistant-create-image" class="assistant-create-image" type="button"><i class="fas fa-wand-magic-sparkles"></i> Create image</button>
|
||||||
<button id="btn-assistant-clear" class="assistant-new-chat" type="button"><i class="fas fa-plus"></i> New chat</button>
|
<button id="btn-assistant-clear" class="assistant-new-chat" type="button"><i class="fas fa-plus"></i> New chat</button>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
|
|
@ -38,7 +37,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="assistant-toolbar-actions">
|
<div class="assistant-toolbar-actions">
|
||||||
<button id="btn-assistant-export-pdf" class="btn-sm btn-ghost" type="button"><i class="fas fa-file-pdf"></i> Export PDF</button>
|
<button id="btn-assistant-export-pdf" class="btn-sm btn-ghost" type="button"><i class="fas fa-file-pdf"></i> Export PDF</button>
|
||||||
<button id="btn-assistant-download-chat" class="btn-sm btn-ghost" type="button">Download transcript</button>
|
<button id="btn-assistant-download-chat" class="btn-sm btn-ghost" type="button"><i class="fas fa-download"></i> Download transcript</button>
|
||||||
<button id="btn-assistant-takehome" class="btn-sm btn-ghost" type="button"><i class="fas fa-heart"></i> Patient take home</button>
|
<button id="btn-assistant-takehome" class="btn-sm btn-ghost" type="button"><i class="fas fa-heart"></i> Patient take home</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -340,7 +340,6 @@ body.assistant-workspace .assistant-learning-view { min-height: 0; height: 100vh
|
||||||
.assistant-autosave-state.failed { color:var(--danger,#dc2626); }
|
.assistant-autosave-state.failed { color:var(--danger,#dc2626); }
|
||||||
/* Rail goback is mobile-only; the topbar goback is desktop-only */
|
/* Rail goback is mobile-only; the topbar goback is desktop-only */
|
||||||
.assistant-goback-rail { display:none; }
|
.assistant-goback-rail { display:none; }
|
||||||
.assistant-rail-action { display:none; }
|
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
/* Go back lives in the drawer menu, clearly labeled at the top */
|
/* Go back lives in the drawer menu, clearly labeled at the top */
|
||||||
.assistant-goback-rail { display:flex; align-items:center; gap:10px; align-self:stretch; width:100%; border:none; background:none; color:var(--g700); font-size:14px; padding:12px; border-radius:8px; text-align:left; margin-bottom:4px; }
|
.assistant-goback-rail { display:flex; align-items:center; gap:10px; align-self:stretch; width:100%; border:none; background:none; color:var(--g700); font-size:14px; padding:12px; border-radius:8px; text-align:left; margin-bottom:4px; }
|
||||||
|
|
@ -349,14 +348,11 @@ body.assistant-workspace .assistant-learning-view { min-height: 0; height: 100vh
|
||||||
.assistant-history .assistant-goback-rail i,
|
.assistant-history .assistant-goback-rail i,
|
||||||
.assistant-history .assistant-create-image i,
|
.assistant-history .assistant-create-image i,
|
||||||
.assistant-history .assistant-new-chat i { display:none; }
|
.assistant-history .assistant-new-chat i { display:none; }
|
||||||
.assistant-rail-action { display:flex; align-items:center; width:100%; border:none; background:none; color:var(--g700); font-size:13px; padding:11px 12px; border-radius:8px; text-align:left; font-family:inherit; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
|
|
||||||
.assistant-rail-action:hover { background:var(--g100); }
|
|
||||||
/* Compact: every menu word fits the drawer width */
|
/* Compact: every menu word fits the drawer width */
|
||||||
.assistant-goback-rail, .assistant-create-image, .assistant-new-chat { font-size:13px; padding:11px 12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
|
.assistant-goback-rail, .assistant-create-image, .assistant-new-chat { font-size:13px; padding:11px 12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
|
||||||
.assistant-history .card-header h3 { font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
|
.assistant-history .card-header h3 { font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
|
||||||
/* The topbar keeps only the hamburger; Go back is in the menu */
|
/* The topbar keeps only the hamburger; Go back is in the menu */
|
||||||
.assistant-topbar #btn-assistant-goback { display:none; }
|
.assistant-topbar #btn-assistant-goback { display:none; }
|
||||||
#btn-assistant-download-chat { display:none; }
|
|
||||||
}
|
}
|
||||||
/* Library item hover download */
|
/* Library item hover download */
|
||||||
.assistant-gallery-item-wrap { position:relative; }
|
.assistant-gallery-item-wrap { position:relative; }
|
||||||
|
|
|
||||||
|
|
@ -114,8 +114,6 @@ import {
|
||||||
if (typeof window !== 'undefined' && window._userRole && window._userRole !== 'admin') {
|
if (typeof window !== 'undefined' && window._userRole && window._userRole !== 'admin') {
|
||||||
var downloadBtn = document.getElementById('btn-assistant-download-chat');
|
var downloadBtn = document.getElementById('btn-assistant-download-chat');
|
||||||
if (downloadBtn) downloadBtn.remove();
|
if (downloadBtn) downloadBtn.remove();
|
||||||
var downloadRailBtn = document.getElementById('btn-assistant-download-rail');
|
|
||||||
if (downloadRailBtn) downloadRailBtn.remove();
|
|
||||||
}
|
}
|
||||||
if (!root || !root.querySelector('#assistant-form')) return;
|
if (!root || !root.querySelector('#assistant-form')) return;
|
||||||
initialized = true;
|
initialized = true;
|
||||||
|
|
@ -187,8 +185,6 @@ import {
|
||||||
clearConversation(ev);
|
clearConversation(ev);
|
||||||
});
|
});
|
||||||
document.getElementById('btn-assistant-download-chat').addEventListener('click', downloadTranscript);
|
document.getElementById('btn-assistant-download-chat').addEventListener('click', downloadTranscript);
|
||||||
var downloadRailBtn = document.getElementById('btn-assistant-download-rail');
|
|
||||||
if (downloadRailBtn) downloadRailBtn.addEventListener('click', downloadTranscript);
|
|
||||||
if (goBackBtn) goBackBtn.addEventListener('click', goBackToMainMenu);
|
if (goBackBtn) goBackBtn.addEventListener('click', goBackToMainMenu);
|
||||||
if (input) {
|
if (input) {
|
||||||
input.addEventListener('input', updateConversationBudget);
|
input.addEventListener('input', updateConversationBudget);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue