Bug: UIKit PreviewBlock cover image tiles repeatedly and stretches across viewport when zoomed out
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 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
- 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
- 主要言語
- JavaScript
- スター
- 171
- フォーク
- 421
- 平均マージ
- 3日 6時間
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RocketChat/EmbeddedChat のほかの issue
-
Bug: username fallback in updateUserUsername never runs since the ddp-client migration対応中かも @MuhammadFaizan-prog が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
RocketChat/EmbeddedChat#1489 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: Low contrast on color swatch borders in Theme Lab (Layout Editor)対応中かも @yashsarvaiya45 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
RocketChat/EmbeddedChat#1486 ·
メンテナーはふだん 1 日以内に返信
-
bug(api): _doConnect swallows connection/auth errors and marks failed sessions as authenticated対応中かも @ashwanisingh011 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
RocketChat/EmbeddedChat#1484 ·
メンテナーはふだん 1 日以内に返信
-
Bug: White screen crash (`Cannot read properties of undefined (reading 'members')`) when rendering UserMention outside MarkupInteractionContext対応中かも @swarnendusahu10-dotcom が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
RocketChat/EmbeddedChat#1482 ·
メンテナーはふだん 1 日以内に返信
-
ug(react): guard against null childElement in MessageAggregator setJumpToMessage対応中かも @Suraj704-glitch が 4 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
RocketChat/EmbeddedChat#1478 ·
メンテナーはふだん 1 日以内に返信
RocketChat/EmbeddedChat の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
[Docs] CONTRIBUTING.md links to retired GitHub Learning Lab and Try Git sites対応中かも @adityamukesh が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
reillywalter/win-dev-doctor#92 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100