Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Little Outliner - body text moves as 'breadcrumb' path wraps to extra lines

Aperta
#229 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
frontend

Direzione di ricerca

No file, test, or entry point is identified. Start by reproducing the attached GIF behavior in Little Outliner while navigating with the mouse, then trace the outline display library and browser wrapping behavior; done means the body text no longer jumps unpredictably as the breadcrumb path changes.

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

Descrizione

When navigating an outline with the mouse, it can be hard to consistently target the correct level on the first click since the body text moves to accommodate the changing size of the 'breadcrumb' header.

See attached animated gif (mirror) for an example:
ezgif-5-49adf87800

If you are several pages down in the outline, the cause is not even necessarily obvious to the user; they just notice that their text keeps jumping around while they navigate.

This is likely not specific to LO, but to the underlining outline display library (of which I can't remember the name at this moment)


I'm not sure what the best fix would be (and I have no idea how much information JS has about how the browser is wrapping lines of text).

Brainstorming:

  1. If the outline position changed due to the mouse and it is necessary to change the number of lines of the heading, delay updating the heading for some period of time (e.g. 0.5-3 seconds)
  2. Always reserve at least 2(?) lines of space for the heading as long as the window is at least a certain size
  3. Truncate to a single line
Lingua principale
HTML
Stelle
134
Fork
10
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

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 scripting/Scripting-News

Tutte le issue di scripting/Scripting-News

Issue simili

Altre issue su Web Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.