Skip to content

Commit f1fe128

Browse files
darkspockclaude
andcommitted
Fix chat panel: use display none instead of transform
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 90de1a5 commit f1fe128

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

website/src/components/OrchestraNetwork.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<p id="tt-status" class="text-[10px] font-mono mt-1.5 flex items-center gap-1.5"></p>
1414
</div>
1515
<!-- Chat panel -->
16-
<div id="chat-panel" class="absolute right-0 top-0 bottom-0 w-[280px] bg-[#0c0c10]/95 backdrop-blur-xl border-l border-indigo-500/15 flex flex-col z-40 transition-transform duration-300" style="border-radius: 0 0.75rem 0.75rem 0; transform: translateX(100%)">
16+
<div id="chat-panel" class="absolute right-0 top-0 bottom-0 w-[280px] bg-[#0c0c10]/95 backdrop-blur-xl border-l border-indigo-500/15 flex-col z-40" style="border-radius: 0 0.75rem 0.75rem 0; display: none;">
1717
<div class="flex items-center justify-between px-3 py-2.5 border-b border-zinc-800/50">
1818
<div class="flex items-center gap-2">
1919
<span id="chat-dot" class="w-2 h-2 rounded-full bg-indigo-400"></span>
@@ -171,7 +171,7 @@
171171
function openChat(idx: number) {
172172
chatNodeIdx = idx;
173173
chatOpen = true;
174-
chatPanel.style.transform = 'translateX(0)';
174+
chatPanel.style.display = 'flex';
175175
const info = nodeInfo[idx];
176176
chatTitle.textContent = info.name;
177177
chatDot.style.backgroundColor = info.statusColor;
@@ -196,7 +196,7 @@
196196

197197
function closeChat() {
198198
chatOpen = false;
199-
chatPanel.style.transform = 'translateX(100%)';
199+
chatPanel.style.display = 'none';
200200
chatNodeIdx = -1;
201201
if (chatAbort) { chatAbort.abort(); chatAbort = null; }
202202
}

0 commit comments

Comments
 (0)