Bug: UIKit PreviewBlock cover image tiles repeatedly and stretches across viewport when zoomed out
Los mantenedores suelen responder en 1 día
@swarnendusahu10-dotcom ya está trabajando en esto.
Desde el 1/12/2026.
- #1481 de @swarnendusahu10-dotcom — abierto
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 82/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- css, javascript, react
- Área
- frontend
Línea de trabajo
Encuentra los componentes MessageGenericPreview y MessageGenericPreviewCoverImage y lee cómo establecen el ancho de la tarjeta de vista previa y los estilos de la imagen de portada. Establece el ancho máximo de la tarjeta en 368px y haz que la imagen de portada se renderice una sola vez, centrada y escalada para cubrir el área. Verifica que la vista previa siga siendo compacta y que la imagen no se repita en mosaico en un viewport ancho ni con un zoom reducido del navegador.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
When a message contains a UIKit preview block (for example, a GitHub PR/issue link preview generated by a Rocket.Chat App), EmbeddedChat renders the preview card across the full width of the chat and repeats/tiles the cover image both horizontally and vertically—especially noticeable on wide viewports or when zooming out (e.g., 50% or 25% browser zoom).
Steps to Reproduce
- Open EmbeddedChat in a channel containing a GitHub PR/issue preview block (e.g.,
#community-chat-any-topic). - View the message on a wide screen or zoom the browser out to 50% / 25%.
- Observe the link preview image.
Expected Behavior
The preview card should remain a compact card (max-width: 368px, matching Rocket.Chat's UI) and the cover image should render once, scaled cleanly (background-repeat: no-repeat, background-size: cover, background-position: center).
Actual Behavior
MessageGenericPreviewhas nomax-widthconstraint, causing the card to stretch to the full message container width.MessageGenericPreviewCoverImagesetsbackground-image: url(...)withoutbackground-repeat: no-repeat,background-size: cover, orbackground-position: center, causing the image to tile repeatedly across the expanded container.
Screen Recording / Screenshots
https://github.com/user-attachments/assets/2ba85987-9b37-4908-97e6-471cec17d512
- Lenguaje dominante
- JavaScript
- Estrellas
- 171
- Forks
- 421
- Merge medio
- 3 d 6 h
- PR fusionados (30 d)
- 4
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de RocketChat/EmbeddedChat
-
Bug: username fallback in updateUserUsername never runs since the ddp-client migrationPosiblemente ocupada @MuhammadFaizan-prog la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
RocketChat/EmbeddedChat#1489 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Low contrast on color swatch borders in Theme Lab (Layout Editor)Posiblemente ocupada @yashsarvaiya45 la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
RocketChat/EmbeddedChat#1486 ·
Los mantenedores suelen responder en 1 día
-
bug(api): _doConnect swallows connection/auth errors and marks failed sessions as authenticatedPosiblemente ocupada @ashwanisingh011 la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
RocketChat/EmbeddedChat#1484 ·
Los mantenedores suelen responder en 1 día
-
Bug: White screen crash (`Cannot read properties of undefined (reading 'members')`) when rendering UserMention outside MarkupInteractionContextPosiblemente ocupada @swarnendusahu10-dotcom la tomó hace 2 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
RocketChat/EmbeddedChat#1482 ·
Los mantenedores suelen responder en 1 día
-
ug(react): guard against null childElement in MessageAggregator setJumpToMessagePosiblemente ocupada @Suraj704-glitch la tomó hace 4 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
RocketChat/EmbeddedChat#1478 ·
Los mantenedores suelen responder en 1 día
Todos los issues de RocketChat/EmbeddedChat
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
[Docs] CONTRIBUTING.md links to retired GitHub Learning Lab and Try Git sitesPosiblemente ocupada @adityamukesh la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
reillywalter/win-dev-doctor#92 ·
Los mantenedores suelen responder en 1 día
-
[Feature] 新增「查看完整听歌设备记录」接口Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100