Bug: UIKit PreviewBlock cover image tiles repeatedly and stretches across viewport when zoomed out

オープン 初心者向け
#1,480 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@swarnendusahu10-dotcom がすでに取り組んでいます。

2026年12月1日 から。

  • #1481 @swarnendusahu10-dotcom による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
css, javascript, react
領域
frontend

調査の方向性

MessageGenericPreview コンポーネントと MessageGenericPreviewCoverImage コンポーネントを見つけ、プレビューカードの幅とカバー画像のスタイルをどのように設定しているかを確認します。カードの最大幅を368pxに設定し、カバー画像が一度だけ表示され、中央に配置され、領域を覆うように拡大縮小されるようにします。プレビューのコンパクトさが保たれ、広いビューポートやブラウザーのズームを縮小した状態でも画像がタイル状に繰り返されないことを確認します。

索引モデルが issue の本文から書いたものです。

説明

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
  1. Open EmbeddedChat in a channel containing a GitHub PR/issue preview block (e.g., #community-chat-any-topic).
  2. View the message on a wide screen or zoom the browser out to 50% / 25%.
  3. 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
  • MessageGenericPreview has no max-width constraint, causing the card to stretch to the full message container width.
  • MessageGenericPreviewCoverImage sets background-image: url(...) without background-repeat: no-repeat, background-size: cover, or background-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

主要言語
JavaScript
スター
171
フォーク
421
平均マージ
3日 6時間
マージ済み PR(30日)
4

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

RocketChat/EmbeddedChat のほかの issue

RocketChat/EmbeddedChat の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。