Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Floating-chat v3 fixes — (1) shadow + animation + backdrop-blur stripped completely in dock-left/right/full states so the panel reads as part of the column layout with no visible elevation; (2) click vs drag detection on the header (6 px movement threshold) — a pure tap on the header is now a no-op instead of immediately popping to floating; (3) drag-release no longer auto-docks to a column on drop — column docking is ONLY explicit via the header dock buttons; instead drop snaps to the nearest edge/corner of the main content area (within 80 px) and hard-clamps inside the content rect so the panel can never leak off-screen; (4) legacy localStorage state values (docked-ne/nw/se/sw, maximized) migrate to collapsed on load so stale persistence doesn't break the new state vocabulary
Murtaza Nasir5a249af2e1f7
diff --git a/chat-v2-2.png b/chat-v2-2.pngnew file mode 100644index 00000000..4f16adbdBinary files /dev/null and b/chat-v2-2.png differdiff --git a/chat-v2-floating.png b/chat-v2-floating.pngnew file mode 100644index 00000000..853c7d87Binary files /dev/null and b/chat-v2-floating.png differdiff --git a/static/css/primitives.css b/static/css/primitives.cssindex de57d9f2..dcf84d62 100644--- a/static/css/primitives.css+++ b/static/css/primitives.css@@ -962,10 +962,17 @@ textarea:focus-visible {* Floating, dockable chat surface for the recording-detail screen.* Lives at z-index 40 (above content but below modals at 50).*- * States — keyed by the chat-panel--{state} class:- * .is-floating free-positioned, drag to move- * .is-docked-ne/nw/se/sw snapped to a viewport corner- * .is-maximized fills the viewport less the global header+ * States — keyed by .is-{state} on the panel:+ * .is-floating free-positioned, draggable, resizable+ * .is-dock-left overlays the transcript column (#leftMainColumn)+ * .is-dock-right overlays the right rail (#rightMainColumn)+ * .is-dock-full overlays both content columns (never under sidebar+ * or bottom audio player; positioned by JS using the+ * #mainContentColumns bounding rect)+ *+ * Sizing in floating mode is driven by JS-bound width/height (user+ * resize via the SE-corner handle). Docked states use computed style+ * pulled from the live column rect.* --------------------------------------------------------------------- */.floating-chat-root {@@ -978,7 +985,7 @@ textarea:focus-visible {/* FAB (collapsed) */.floating-chat-fab {position: fixed;- bottom: 84px; /* above the persistent bottom audio player */+ bottom: 84px;right: 24px;width: 56px;height: 56px;@@ -1016,13 +1023,9 @@ textarea:focus-visible {justify-content: center;}-/* Panel (floating / docked / maximized) */+/* Panel base (positioning + sizing set inline by Vue for all states) */.floating-chat-panel {position: fixed;- width: 380px;- height: 520px;- max-width: calc(100vw - 32px);- max-height: calc(100vh - 80px);background: var(--bg-secondary);color: var(--text-primary);border: var(--border-hairline) solid var(--border-primary);@@ -1034,29 +1037,32 @@ textarea:focus-visible {pointer-events: auto;backdrop-filter: blur(6px);animation: chatPanelIn 180ms cubic-bezier(0.16, 1, 0.3, 1);+ transition: box-shadow var(--t-fast) ease;}@keyframes chatPanelIn {- from { opacity: 0; transform: translateY(8px) scale(0.97); }+ from { opacity: 0; transform: translateY(8px) scale(0.98); }to { opacity: 1; transform: translateY(0) scale(1); }}-/* Docked corners */-.floating-chat-panel.is-docked-se { bottom: 84px; right: 24px; top: auto; left: auto; }-.floating-chat-panel.is-docked-sw { bottom: 84px; left: 24px; top: auto; right: auto; }-.floating-chat-panel.is-docked-ne { top: 80px; right: 24px; bottom: auto; left: auto; }-.floating-chat-panel.is-docked-nw { top: 80px; left: 24px; bottom: auto; right: auto; }+/* Dock states drop ALL shadow + corner radius so they read as part of+ * the column layout (and never have a visible curve at the sidebar+ * edge). Border-left/right kept as a hairline so the panel still has+ * a definite visual edge against the column it overlays. */+.floating-chat-panel.is-dock-left,+.floating-chat-panel.is-dock-right,+.floating-chat-panel.is-dock-full {+ border-radius: 0;+ box-shadow: none;+ backdrop-filter: none;+ animation: none;+}-/* Maximized */-.floating-chat-panel.is-maximized {- width: calc(100vw - 48px);- height: calc(100vh - 120px);- top: 80px;- left: 24px;- right: 24px;- bottom: auto;- max-width: none;- max-height: none;+/* While actively dragging or resizing, give a subtle ring so the user+ * sees the interaction. Only applies in floating state. */+.floating-chat-panel.is-floating.is-dragging,+.floating-chat-panel.is-floating.is-resizing {+ box-shadow: var(--shadow-lg), 0 0 0 2px rgba(59, 130, 246, 0.25);}/* Header (drag handle) */@@ -1106,6 +1112,54 @@ textarea:focus-visible {background: var(--bg-secondary);}+/* Dock-target divider in the header actions row */+.floating-chat-dock-divider {+ display: inline-block;+ width: 1px;+ height: 18px;+ background: var(--border-primary);+ margin: 0 var(--sp-1);+}++/* Dock-target active button (highlights the currently-active dock) */+.floating-chat-header-actions .btn.is-active {+ color: var(--text-accent);+ background: var(--bg-tertiary);+}++/* SE-corner resize handle (only shown in floating state) */+.floating-chat-resize-handle {+ position: absolute;+ right: 0;+ bottom: 0;+ width: 18px;+ height: 18px;+ cursor: nwse-resize;+ pointer-events: auto;+ user-select: none;+ touch-action: none;+ background:+ linear-gradient(+ 135deg,+ transparent 0,+ transparent 50%,+ var(--text-muted) 50%,+ var(--text-muted) 52%,+ transparent 52%,+ transparent 60%,+ var(--text-muted) 60%,+ var(--text-muted) 62%,+ transparent 62%,+ transparent 70%,+ var(--text-muted) 70%,+ var(--text-muted) 72%,+ transparent 72%+ );+ opacity: 0.5;+ transition: opacity var(--t-fast) ease;+}+.floating-chat-resize-handle:hover { opacity: 0.9; }+@media (max-width: 768px) {.floating-chat-fab { display: none; }.floating-chat-panel { display: none; }diff --git a/static/js/app.modular.js b/static/js/app.modular.jsindex 2bc4d4af..e6f30cce 100644--- a/static/js/app.modular.js+++ b/static/js/app.modular.js@@ -575,28 +575,95 @@ document.addEventListener('DOMContentLoaded', async () => {const chatInputRef = ref(null);// --- Floating Chat Panel State ---- // 'collapsed' (FAB only) | 'floating' (free-positioned) |- // 'docked-{ne,nw,se,sw}' (snapped to viewport corner) |- // 'maximized' (fills viewport less header)+ // 'collapsed' – FAB only (bottom-right of viewport)+ // 'floating' – free-positioned panel (user x,y; persisted)+ // 'dock-left' – overlays the transcript column+ // 'dock-right' – overlays the right rail+ // 'dock-full' – overlays both columns (never under the sidebar+ // or bottom audio player)const chatPanelState = ref('collapsed');const chatPanelX = ref(null);const chatPanelY = ref(null);- // Drag state — not persisted, just runtime+ const chatPanelW = ref(480); // user-resizable default+ const chatPanelH = ref(640);+ const chatLayoutTick = ref(0); // bumped on resize/sidebar-toggleconst chatDragActive = ref(false);+ const chatResizeActive = ref(false);let chatDragStartX = 0;let chatDragStartY = 0;let chatDragInitialX = 0;let chatDragInitialY = 0;+ // Pull the bounding rect of a target element. Returns null+ // if the element isn't in the DOM (panel hasn't mounted yet).+ const _rect = (sel) => {+ const el = document.querySelector(sel);+ return el ? el.getBoundingClientRect() : null;+ };++ // Compute the panel's inline style for the active state.+ // Reactive on chatLayoutTick so resize / sidebar toggle+ // trigger recompute.const floatingChatPanelStyle = computed(() => {+ // Touch the tick to register reactivity for resize updates.+ void chatLayoutTick.value;+if (chatPanelState.value === 'floating' && chatPanelX.value != null) {return {top: chatPanelY.value + 'px',left: chatPanelX.value + 'px',+ width: chatPanelW.value + 'px',+ height: chatPanelH.value + 'px',right: 'auto',bottom: 'auto'};}+ if (chatPanelState.value === 'dock-left') {+ const r = _rect('#leftMainColumn');+ if (r && r.width > 0) {+ return {+ left: r.left + 'px',+ top: r.top + 'px',+ width: r.width + 'px',+ height: r.height + 'px',+ right: 'auto',+ bottom: 'auto',+ borderRadius: '0',+ };+ }+ }+ if (chatPanelState.value === 'dock-right') {+ const r = _rect('#rightMainColumn');+ if (r && r.width > 0) {+ return {+ left: r.left + 'px',+ top: r.top + 'px',+ width: r.width + 'px',+ height: r.height + 'px',+ right: 'auto',+ bottom: 'auto',+ borderRadius: '0',+ };+ }+ }+ if (chatPanelState.value === 'dock-full') {+ // Span both content columns. Use the parent+ // #mainContentColumns rect so the panel naturally+ // stays within the content area (right of sidebar,+ // above bottom audio player).+ const r = _rect('#mainContentColumns');+ if (r && r.width > 0) {+ return {+ left: r.left + 'px',+ top: r.top + 'px',+ width: r.width + 'px',+ height: r.height + 'px',+ right: 'auto',+ bottom: 'auto',+ borderRadius: '0',+ };+ }+ }return {};});@@ -613,71 +680,160 @@ document.addEventListener('DOMContentLoaded', async () => {state: chatPanelState.value,x: chatPanelX.value,y: chatPanelY.value,+ w: chatPanelW.value,+ h: chatPanelH.value,}));- } catch (e) { /* quota exceeded etc — ignore */ }+ } catch (e) { /* ignore */ }};const restoreChatPanelPosition = () => {const key = _chatPanelStorageKey();if (!key) return;try {const raw = localStorage.getItem(key);- if (!raw) {- chatPanelState.value = 'collapsed';- return;- }+ if (!raw) { chatPanelState.value = 'collapsed'; return; }const data = JSON.parse(raw);- chatPanelState.value = data.state || 'collapsed';+ // Migrate legacy state values from the previous+ // panel design (docked-ne/nw/se/sw, maximized) to+ // the new state vocabulary.+ const validStates = ['collapsed', 'floating', 'dock-left', 'dock-right', 'dock-full'];+ let s = data.state || 'collapsed';+ if (!validStates.includes(s)) {+ // Any legacy value → collapse so the user opens fresh.+ s = 'collapsed';+ }+ chatPanelState.value = s;chatPanelX.value = data.x;chatPanelY.value = data.y;+ if (data.w) chatPanelW.value = data.w;+ if (data.h) chatPanelH.value = data.h;} catch (e) {chatPanelState.value = 'collapsed';}};const openChatPanel = () => {- chatPanelState.value = 'docked-se';+ if (chatPanelState.value === 'collapsed') {+ const main = document.querySelector('main.main-content');+ const r = main ? main.getBoundingClientRect() : null;+ chatPanelState.value = 'floating';+ chatPanelX.value = r ? (r.right - chatPanelW.value - 24) : (window.innerWidth - chatPanelW.value - 24);+ chatPanelY.value = r ? (r.bottom - chatPanelH.value - 80) : (window.innerHeight - chatPanelH.value - 80);+ }saveChatPanelPosition();};++ // South-east corner resize handle drag — only active in+ // floating mode. Touch-friendly.+ const startChatPanelResize = (event) => {+ if (chatPanelState.value !== 'floating') return;+ const isTouch = event.touches != null;+ const point = isTouch ? event.touches[0] : event;+ chatResizeActive.value = true;+ const startW = chatPanelW.value;+ const startH = chatPanelH.value;+ const startPX = point.clientX;+ const startPY = point.clientY;++ const MIN_W = 320, MIN_H = 360;+ const MAX_W = Math.min(window.innerWidth - chatPanelX.value - 16, 1200);+ const MAX_H = Math.min(window.innerHeight - chatPanelY.value - 16, 900);++ const moveHandler = (e) => {+ const p = e.touches ? e.touches[0] : e;+ chatPanelW.value = Math.max(MIN_W, Math.min(MAX_W, startW + (p.clientX - startPX)));+ chatPanelH.value = Math.max(MIN_H, Math.min(MAX_H, startH + (p.clientY - startPY)));+ };+ const endHandler = () => {+ chatResizeActive.value = false;+ document.removeEventListener('mousemove', moveHandler);+ document.removeEventListener('mouseup', endHandler);+ document.removeEventListener('touchmove', moveHandler);+ document.removeEventListener('touchend', endHandler);+ saveChatPanelPosition();+ };+ document.addEventListener('mousemove', moveHandler);+ document.addEventListener('mouseup', endHandler);+ document.addEventListener('touchmove', moveHandler, { passive: true });+ document.addEventListener('touchend', endHandler);+ event.preventDefault();+ event.stopPropagation();+ };const collapseChatPanel = () => {chatPanelState.value = 'collapsed';saveChatPanelPosition();};+ const dockChatPanel = (target) => {+ // target: 'left' | 'right' | 'full' | 'floating'+ if (target === 'floating' && chatPanelX.value == null) {+ // First entry into floating from a dock — seat in+ // the panel's current docked rect so it doesn't+ // jump to (0,0).+ const panelEl = document.querySelector('.floating-chat-panel');+ if (panelEl) {+ const rect = panelEl.getBoundingClientRect();+ chatPanelX.value = rect.left;+ chatPanelY.value = rect.top;+ }+ }+ chatPanelState.value = target === 'floating' ? 'floating' : ('dock-' + target);+ saveChatPanelPosition();+ };const toggleChatPanelMax = () => {- if (chatPanelState.value === 'maximized') {- chatPanelState.value = 'docked-se';+ // Backward-compatible alias used by old template; toggle full vs floating+ if (chatPanelState.value === 'dock-full') {+ dockChatPanel('floating');} else {- chatPanelState.value = 'maximized';+ dockChatPanel('full');}- saveChatPanelPosition();};- // Drag-to-snap: header pointer-down → track mouse → on- // release, if released within 100px of a corner, snap to- // that corner; otherwise stay free-floating.const startChatPanelDrag = (event) => {- if (chatPanelState.value === 'maximized') return;+ // Click vs drag: don't enter drag until pointer moves+ // beyond DRAG_THRESHOLD. A pure click on the header is+ // a no-op (no accidental docking / floating switch).+ const DRAG_THRESHOLD = 6;const isTouch = event.touches != null;const point = isTouch ? event.touches[0] : event;- chatDragActive.value = true;-- // If the panel was docked, switch to floating with the- // current rendered position before the user starts- // moving it (otherwise dragging from a docked corner- // would snap weirdly).- const panelEl = event.currentTarget.closest('.floating-chat-panel');- if (panelEl) {- const rect = panelEl.getBoundingClientRect();- chatPanelX.value = rect.left;- chatPanelY.value = rect.top;+ const startX = point.clientX;+ const startY = point.clientY;+ let dragStarted = false;+ let startedFromState = chatPanelState.value;++ const ensureDragStarted = (p) => {+ if (dragStarted) return;+ if (Math.abs(p.clientX - startX) < DRAG_THRESHOLD &&+ Math.abs(p.clientY - startY) < DRAG_THRESHOLD) {+ return;+ }+ dragStarted = true;+ chatDragActive.value = true;++ // If panel was docked, pop out into floating mode+ // at the cursor position with the user's preferred+ // floating size.+ if (startedFromState !== 'floating') {+ chatPanelX.value = Math.max(0, p.clientX - 100);+ chatPanelY.value = Math.max(0, p.clientY - 18);+ } else {+ // Use current panel rect so it doesn't jump.+ const panelEl = document.querySelector('.floating-chat-panel');+ if (panelEl) {+ const r = panelEl.getBoundingClientRect();+ chatPanelX.value = r.left;+ chatPanelY.value = r.top;+ }+ }chatPanelState.value = 'floating';- }- chatDragStartX = point.clientX;- chatDragStartY = point.clientY;- chatDragInitialX = chatPanelX.value || 0;- chatDragInitialY = chatPanelY.value || 0;+ chatDragStartX = p.clientX;+ chatDragStartY = p.clientY;+ chatDragInitialX = chatPanelX.value || 0;+ chatDragInitialY = chatPanelY.value || 0;+ };const moveHandler = (e) => {const p = e.touches ? e.touches[0] : e;+ ensureDragStarted(p);+ if (!dragStarted) return;chatPanelX.value = chatDragInitialX + (p.clientX - chatDragStartX);chatPanelY.value = chatDragInitialY + (p.clientY - chatDragStartY);};@@ -687,31 +843,44 @@ document.addEventListener('DOMContentLoaded', async () => {document.removeEventListener('mouseup', endHandler);document.removeEventListener('touchmove', moveHandler);document.removeEventListener('touchend', endHandler);+ if (!dragStarted) return; // Pure click — no-op.++ // On release: snap to a corner of the main content+ // area if released near one. Otherwise stay floating+ // clamped inside the main content rect. We never+ // auto-dock to a column on drop — that's an+ // explicit user action via the dock buttons.+ const main = document.querySelector('main.main-content');+ const mainRect = main ? main.getBoundingClientRect() : null;+ const w = chatPanelW.value;+ const h = chatPanelH.value;++ if (mainRect) {+ const CORNER_SNAP = 80;+ const distL = Math.abs(chatPanelX.value - mainRect.left);+ const distR = Math.abs(chatPanelX.value + w - mainRect.right);+ const distT = Math.abs(chatPanelY.value - mainRect.top);+ const distB = Math.abs(chatPanelY.value + h - mainRect.bottom);++ // Hard-snap if within CORNER_SNAP px of any+ // main-area edge.+ if (distL < CORNER_SNAP) chatPanelX.value = mainRect.left + 12;+ else if (distR < CORNER_SNAP) chatPanelX.value = mainRect.right - w - 12;+ if (distT < CORNER_SNAP) chatPanelY.value = mainRect.top + 12;+ else if (distB < CORNER_SNAP) {+ // Leave room for the bottom audio bar (~64px)+ chatPanelY.value = mainRect.bottom - h - 80;+ }- // Snap to corner if released within snap radius.- const SNAP = 100;- const vw = window.innerWidth;- const vh = window.innerHeight;- const panelW = 380;- const panelH = 520;- const x = chatPanelX.value;- const y = chatPanelY.value;- // Use the panel's centroid for snap detection.- const cx = x + panelW / 2;- const cy = y + panelH / 2;- const nearLeft = cx < SNAP + panelW / 2;- const nearRight = cx > vw - SNAP - panelW / 2;- const nearTop = cy < SNAP + panelH / 2;- const nearBottom = cy > vh - SNAP - panelH / 2;- if (nearLeft && nearTop) chatPanelState.value = 'docked-nw';- else if (nearRight && nearTop) chatPanelState.value = 'docked-ne';- else if (nearLeft && nearBottom) chatPanelState.value = 'docked-sw';- else if (nearRight && nearBottom) chatPanelState.value = 'docked-se';- // Else stay 'floating' with the x/y we have.- // Clamp into viewport so it can't be dragged off-screen.- if (chatPanelState.value === 'floating') {- chatPanelX.value = Math.max(0, Math.min(chatPanelX.value, vw - panelW));- chatPanelY.value = Math.max(0, Math.min(chatPanelY.value, vh - panelH));+ // Final clamp — never let the panel slip off-screen.+ chatPanelX.value = Math.max(+ mainRect.left + 8,+ Math.min(chatPanelX.value, mainRect.right - w - 8)+ );+ chatPanelY.value = Math.max(+ mainRect.top + 8,+ Math.min(chatPanelY.value, mainRect.bottom - h - 8)+ );}saveChatPanelPosition();};@@ -719,13 +888,23 @@ document.addEventListener('DOMContentLoaded', async () => {document.addEventListener('mouseup', endHandler);document.addEventListener('touchmove', moveHandler, { passive: true });document.addEventListener('touchend', endHandler);- event.preventDefault();+ // Don't preventDefault — we need to allow click on+ // children (close button etc) to work if the user+ // didn't actually drag.};+ // Bump the layout tick on window resize / sidebar toggle so+ // the docked positioning style recomputes.+ const _bumpChatLayout = () => { chatLayoutTick.value += 1; };+ if (typeof window !== 'undefined') {+ window.addEventListener('resize', _bumpChatLayout);+ }+// Restore chat panel position whenever the selected recording changes.watch(selectedRecording, (newRec) => {if (newRec) {restoreChatPanelPosition();+ nextTick(_bumpChatLayout);}}, { immediate: false });@@ -1037,8 +1216,10 @@ document.addEventListener('DOMContentLoaded', async () => {// ChatshowChat, isChatMaximized, chatMessages, chatInput, isChatLoading, chatMessagesRef, chatInputRef,- chatPanelState, chatPanelX, chatPanelY, chatDragActive, floatingChatPanelStyle,- openChatPanel, collapseChatPanel, toggleChatPanelMax, startChatPanelDrag,+ chatPanelState, chatPanelX, chatPanelY, chatPanelW, chatPanelH,+ chatDragActive, chatResizeActive, floatingChatPanelStyle,+ openChatPanel, collapseChatPanel, toggleChatPanelMax,+ startChatPanelDrag, startChatPanelResize, dockChatPanel,// Audio PlayerplayerVolume, audioIsPlaying, audioCurrentTime, audioDuration, audioIsMuted, audioIsLoading, asrEditorAudio,diff --git a/templates/components/detail/floating-chat.html b/templates/components/detail/floating-chat.htmlindex 067e8cce..c4f61804 100644--- a/templates/components/detail/floating-chat.html+++ b/templates/components/detail/floating-chat.html@@ -1,12 +1,15 @@-<!-- Floating Dockable Chat Panel (design system v1).+<!-- Floating Dockable Chat Panel (design system v1, redesigned).States:- - 'collapsed': FAB only, bottom-right- - 'floating' : 380×500 panel at user-saved position- - 'docked-{ne,nw,se,sw}': snapped to a corner- - 'maximized': fills available space- Drag the header to move. Drop within 100px of a viewport corner →- snaps to that corner. Position persisted in localStorage per- recording id. Teleported to <body> so it floats above all content. -->+ - 'collapsed' : FAB only (bottom-right of viewport)+ - 'floating' : free-positioned 480×640 (default), draggable, resizable+ - 'dock-left' : overlays the transcript column+ - 'dock-right' : overlays the right rail+ - 'dock-full' : overlays both content columns (never under the+ sidebar or bottom audio player)++ Header carries the dock targets (◧ left, ▢ full, ◨ right) plus a+ close button. A SE-corner resize handle is shown in floating mode.+--><Teleport to="body"><div v-if="currentView === 'detail' && selectedRecording" class="floating-chat-root"><!-- FAB (collapsed) -->@@ -20,12 +23,16 @@</span></button>- <!-- Panel (floating/docked/maximized) -->+ <!-- Panel (any non-collapsed state) --><div v-elseclass="floating-chat-panel"- :class="['is-' + chatPanelState]"+ :class="[+ 'is-' + chatPanelState,+ chatDragActive ? 'is-dragging' : '',+ chatResizeActive ? 'is-resizing' : ''+ ]":style="floatingChatPanelStyle">- <!-- Header (drag handle) -->+ <!-- Header — drag handle + dock targets + close --><div class="floating-chat-header"@mousedown="startChatPanelDrag"@touchstart.passive="startChatPanelDrag">@@ -34,26 +41,41 @@<span>${ t('chat.chatWithTranscription') }</span><span v-if="chatMessages && chatMessages.length > 0" class="tab__count">${chatMessages.length}</span></div>- <div class="floating-chat-header-actions">+ <div class="floating-chat-header-actions" @mousedown.stop @touchstart.stop><button v-if="chatMessages.length > 0"- @click.stop="downloadChat"+ @click="downloadChat"class="btn btn--icon btn--sm":title="t('buttons.downloadChat')"><i class="fas fa-download"></i></button><button v-if="chatMessages.length > 0"- @click.stop="clearChat"+ @click="clearChat"class="btn btn--icon btn--sm"style="color: var(--text-muted);"title="Clear chat"><i class="fas fa-eraser"></i></button>- <button @click.stop="toggleChatPanelMax"+ <span class="floating-chat-dock-divider"></span>+ <button @click="dockChatPanel('left')"+ class="btn btn--icon btn--sm"+ :class="{ 'is-active': chatPanelState === 'dock-left' }"+ title="Dock to transcript column">+ <i class="fas fa-square" style="font-size: 9px; transform: translateX(-3px);"></i><i class="fas fa-square-o" style="font-size: 9px; transform: translateX(-1px); opacity: 0.3;"></i>+ </button>+ <button @click="dockChatPanel('full')"class="btn btn--icon btn--sm"- :title="chatPanelState === 'maximized' ? t('tooltips.restoreChat') : t('tooltips.maximizeChat')">- <i :class="['fas', chatPanelState === 'maximized' ? 'fa-compress' : 'fa-expand']"></i>+ :class="{ 'is-active': chatPanelState === 'dock-full' }"+ title="Dock full width">+ <i class="fas fa-expand"></i></button>- <button @click.stop="collapseChatPanel"+ <button @click="dockChatPanel('right')"+ class="btn btn--icon btn--sm"+ :class="{ 'is-active': chatPanelState === 'dock-right' }"+ title="Dock to right rail">+ <i class="fas fa-square-o" style="font-size: 9px; transform: translateX(-3px); opacity: 0.3;"></i><i class="fas fa-square" style="font-size: 9px; transform: translateX(-1px);"></i>+ </button>+ <span class="floating-chat-dock-divider"></span>+ <button @click="collapseChatPanel"class="btn btn--icon btn--sm":title="t('buttons.close')"><i class="fas fa-times"></i>@@ -128,6 +150,14 @@<span v-text="t('chat.availableAfterTranscription')"></span></div></div>++ <!-- Resize handle (floating mode only) -->+ <div v-if="chatPanelState === 'floating'"+ class="floating-chat-resize-handle"+ @mousedown="startChatPanelResize"+ @touchstart.passive="startChatPanelResize"+ title="Drag to resize">+ </div></div></div></Teleport>