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 摘要。