Widget: make the chat window fit on small phones

Aperta Adatta ai principianti
#67 9 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@sethr07 ci sta già lavorando.

Dal 23/11/2026.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
70/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
frontend

Direzione di ricerca

La larghezza fissa della finestra di chat è impostata nel piccolo script di embedding public/widget.js e negli stili della pagina del widget. Inizia leggendo come viene applicata la larghezza della finestra, poi verifica il layout a 375 pixel di larghezza. È fatto quando la finestra entra nello schermo del telefono senza overflow orizzontale, la versione desktop appare invariata, apertura e chiusura funzionano ancora e un test o uno screenshot copre il caso della larghezza da telefono.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DeadantCo/answerLoopsdev

Tutte le issue di DeadantCo/answerLoopsdev

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.