alleyinteractive / alleyinteractive/wp-seo

Add mobile/desktop toggle to the search engine preview modal

オープン
#182 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
45
フォーク
13
平均マージ
12日 16時間
マージ済み PR(30日)
5

説明

### Description

The search engine live preview shipped in #137 (`components/open-graph/PreviewModal.tsx` → `SearchPreview.tsx`) renders a single, generic result-snippet layout. Issue #161's MVP requirements call for the preview to support both mobile and desktop views, since search result snippet truncation and layout differ between the two.

### Use Case

Editors want to see how a page will actually appear in search results on both mobile and desktop before publishing, since title/description truncation lengths differ meaningfully between the two surfaces.

### Proposed Solution

Add a toggle (e.g. tabs similar to the existing Search/Social tabs) to `SearchPreview.tsx` that switches between a mobile-style and desktop-style rendering of the snippet, using the appropriate truncation lengths/layout for each.

### Related

- #161 (parent MVP tracking issue)
- #137 (original search/social preview implementation)

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

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

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