Skip to content

Enable direct Spotify embed playback on desktop#2266

Open
akazdayo wants to merge 2 commits into
SnowCait:mainfrom
akazdayo:feat/issue-2258
Open

Enable direct Spotify embed playback on desktop#2266
akazdayo wants to merge 2 commits into
SnowCait:mainfrom
akazdayo:feat/issue-2258

Conversation

@akazdayo

Copy link
Copy Markdown
Contributor

Closes: #2258

Summary

タッチ環境では新しいタブで開き、ポインター環境ではそのままEmbedを利用できるように変更しました。基本的にはIssueの通りです。
現行のバージョンでは、ホバー時の演出(ブラー等)がありますが、タップ環境ではポインタが存在せずブラーの表示ができないため演出は全て削除しました。
また、Accessibilityについてタップ環境ではembedの操作ができないためtab-indexに-1を定義し、ポインター環境では0を定義しています。

@akazdayo
akazdayo requested a review from SnowCait as a code owner July 22, 2026 07:11
@akazdayo akazdayo changed the title Feat/issue 2258 Enable direct Spotify embed playback on desktop Jul 22, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 96b893de3d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


let { link }: Props = $props();

const supportsDirectInteraction = new MediaQuery('(hover: hover) and (pointer: fine)', false);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep the link overlay on hybrid touch devices

On hybrid devices such as touchscreen laptops or tablets with a connected trackpad, hover and pointer describe the primary pointer and can both match this query even when the user taps the screen. The overlay is therefore removed and the tap reaches the Spotify iframe instead of opening the required new tab, preserving the touch-input failure this change is intended to avoid. Account for touch capability (for example via the any-pointer media features) rather than classifying the whole device solely by its primary pointer.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable direct Spotify embed playback on desktop

1 participant