Suggestion menu, when opening on top, isn't positioned correctly

Abierto
#2,155 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
react, typescript
Área
frontend

Línea de trabajo

Start by reproducing the issue with the / menu, filtering to a small number of items, and inspect the suggestions menu positioning and its 300px minimum height. The fix is complete when a short menu that opens above the cursor is positioned close to the cursor without the excessive gap described.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug:P2

Describe the bug
When opening any suggestions menu, if there's not enough space on the bottom and it opens on top, if the menu only has a few items, it is placed far above the cursor.

It appears the suggestions menu has a min-height of 300px. If the menu's items are few and thus the menu is shorter than 300px, the menu appears too far above. Not sure why the 300px min-height is added but it causes this issue and there's no way to override it since its added as a style attribute not through a class.

You can reproduce this issue with the / menu by simply filtering down to a small number of items.

Lenguaje dominante
TypeScript
Estrellas
10.2k
Forks
772
Merge medio
3 d 11 h
PR fusionados (30 d)
17

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de TypeCellOS/BlockNote

Todos los issues de TypeCellOS/BlockNote

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.