File size: 1,290 Bytes
ef987bb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!doctype html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <title>Floating Prompt Fixture</title>
  <style>

    body { min-height: 120vh; font-family: Arial, sans-serif; margin: 0; padding: 32px; }

    .chat-message.sent { max-width: 560px; padding: 12px; background: #eef2ff; border-radius: 10px; }

    .floating-prompt-area { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); padding: 10px; background: white; border: 1px solid #c8cdd8; box-shadow: 0 6px 24px rgba(0,0,0,.16); }

    .floating-prompt-area.rounded { border-radius: 18px; }

    .floating-prompt-area.square { border-radius: 0; }

    .prompt-input { width: 100%; box-sizing: border-box; min-height: 42px; padding: 10px 12px; }

  </style>
</head>
<body>
  <p class="chat-message sent" data-testid="sent-message">Already sent message should stay in history.</p>
  <div class="composer-source" data-testid="composer-source">
    <input class="prompt-input" data-testid="reusable-prompt-input" placeholder="Type a pending prompt">
  </div>
  <div class="floating-prompt-area rounded" data-testid="floating-prompt-area" data-state="sent">
    <span data-testid="floating-sent-copy">Already sent message</span>
  </div>
</body>
</html>