Skip to content

add button for EventTile.tsx hover event on touchscreen devices#91

Merged
balog-b merged 3 commits intomasterfrom
bug/event-hover
Mar 4, 2026
Merged

add button for EventTile.tsx hover event on touchscreen devices#91
balog-b merged 3 commits intomasterfrom
bug/event-hover

Conversation

@TGyAkos
Copy link
Copy Markdown
Contributor

@TGyAkos TGyAkos commented Mar 2, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 2, 2026 11:25
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
svk-web Ready Ready Preview, Comment Mar 4, 2026 8:29pm

Request Review

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a touch-friendly affordance to EventTile so users on devices without hover can reveal the tile’s “hover” details, supported by a new device-capability hook.

Changes:

  • Introduces useIsTouchDevice hook using a media-query listener to detect (hover: none).
  • Updates EventTile to render a hamburger control on “touch” devices that toggles the hovered state.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 5 comments.

File Description
src/utils/hooks/useIsTouchDevice.tsx New hook to detect lack of hover capability via matchMedia and keep it updated on changes.
src/components/event-components/EventTile.tsx Adds a hamburger control (shown on detected touch/no-hover devices) to toggle the hover details state.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/utils/hooks/useIsTouchDevice.tsx
Comment thread src/components/event-components/EventTile.tsx Outdated
Comment thread src/components/event-components/EventTile.tsx Outdated
Comment thread src/components/event-components/EventTile.tsx
Comment thread src/components/event-components/EventTile.tsx Outdated
@TGyAkos TGyAkos self-assigned this Mar 2, 2026
@balog-b balog-b linked an issue Mar 4, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Collaborator

@balog-b balog-b left a comment

Choose a reason for hiding this comment

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

Pretty good but needs a little polish.

Right now it requires two clicks to actually trigger the hover action. This is probably due to how touch screen works, where a tap can triggers the hover effect too. I would try disabling the default hover logic when on mobile.

Also, some event cards feature a "Spot album" logo. The new button is currently overlapping said album icon on cards that have a Spot album.

Copy link
Copy Markdown
Collaborator

@balog-b balog-b left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@balog-b balog-b merged commit 30d60ec into master Mar 4, 2026
2 checks passed
@balog-b balog-b deleted the bug/event-hover branch March 4, 2026 22:08
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.

Event Info Button

3 participants