Widget: make the chat window fit on small phones

未關閉 適合新手
#67 9 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

@sethr07 已經在處理了。

開始於 2026年11月23日。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
70/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
javascript
領域
frontend

研究方向

聊天視窗的固定寬度是在小型嵌入腳本 public/widget.js 以及 widget 頁面的樣式中設定。請先閱讀視窗寬度是如何套用的,然後檢查寬度為 375 像素時的版面配置。完成的標準是:視窗能在手機螢幕內放下且沒有水平溢出,桌面版外觀保持不變,開啟和關閉功能仍然正常,並且有測試或螢幕截圖涵蓋手機寬度的情況。

由索引模型根據 Issue 內容生成。

描述

enhancement frontend good first issue help wanted

Copied from DeadantCo/answerLoops#57 · originally opened by sethr07 on 2026-11-20

Copied from https://github.com/answerLoops/answerLoops/issues/344 — originally opened by @NathanTarbert on 2026-10-08

The problem today

The chat window on a customer's website is a fixed width (about 380 pixels). On phones narrower than that, part of the window hangs off the edge of the screen and visitors can't reach the send button or close button.

What to change

On small screens (phone width), the chat window should fill the screen with no horizontal overflow. On larger screens nothing changes. The change lives in the small embed script (public/widget.js) and the widget page styles.

Done when

  • At 375 pixels wide the window fits the screen: nothing is cut off, and the close button, message list and send box are all reachable
  • On desktop the window looks exactly as it does today
  • Open and close still work on phone and desktop, and the page behind doesn't scroll sideways
  • A test or screenshot check covers the phone-width case

Good first issue

Small, self-contained and with no dependencies. Part of the chat widget work tracked in #333.

Sequencing: lands before #352 and #351, which touch the same panel code.

Start here: new to the project? Read CONTRIBUTING.md first. It covers the ground rules, running answerLoops locally, and how to open a pull request.

主要語言
TypeScript
星號
0
分支
0
PR 合併指標
30 天內沒有已合併 PR

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

DeadantCo/answerLoopsdev 的其他 Issue

查看 DeadantCo/answerLoopsdev 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。