Skip to content

Commit 033f72b

Browse files
committed
fix: 修正複製按鈕定位問題,改為相對於程式碼區塊定位
1 parent 3502c05 commit 033f72b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ <h3 style="font-size: 1.25rem; font-weight: 600; color: #1d1d1f; margin-bottom:
307307
<details style="background: #f5f5f7; padding: 24px; border-radius: 16px; border: none;">
308308
<summary style="cursor: pointer; font-weight: 600; color: #007aff; font-size: 1rem;">Agent 快速設置指令(點擊展開)</summary>
309309
<div style="position: relative;">
310-
<button onclick="copyAgentPrompt()" style="position: fixed; top: auto; bottom: 20px; right: 20px; padding: 8px 16px; background: #007aff; color: white; border: none; border-radius: 20px; font-size: 12px; cursor: pointer; z-index: 1000; box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3); display: none;">
310+
<button onclick="copyAgentPrompt()" style="position: absolute; top: 15px; right: 15px; padding: 8px 16px; background: #007aff; color: white; border: none; border-radius: 20px; font-size: 12px; cursor: pointer; z-index: 10; box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3); display: none;">
311311
複製
312312
</button>
313313
<pre id="agentPrompt" style="margin-top: 10px; background: white; padding: 15px; padding-right: 60px; border-radius: 5px; font-size: 0.9rem; overflow-x: auto;">請幫我設置 GitHub Copilot 教學專案環境:

0 commit comments

Comments
 (0)