Skip to content

Fix: Favorite icon shifts on hover in OS+ - #187

Merged
arome merged 4 commits into
mainfrom
omar/fix-favorite-hover
Nov 6, 2025
Merged

Fix: Favorite icon shifts on hover in OS+#187
arome merged 4 commits into
mainfrom
omar/fix-favorite-hover

Conversation

@arome

@arome arome commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

Gif of the issue being fixed:

2025-11-05 15 17 24

Also moved the "Remove from recents" option to the top of the list and provide user the option to add a custom icon before the text.
image

@arome
arome requested a review from aruniverse as a code owner November 5, 2025 20:19
@arome
arome enabled auto-merge (squash) November 5, 2025 20:25
@arome
arome disabled auto-merge November 5, 2025 20:37
@arome
arome enabled auto-merge (squash) November 5, 2025 21:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a visual bug where the favorite icon shifts when hovering over iModel and iTwin tiles. The fix changes the display property from block to flex to prevent layout shifts. Additionally, the PR enhances the "Remove from recents" context menu action by moving it to the top of the menu and adding support for a custom icon.

Key Changes:

  • Fixed favorite icon hover behavior by changing CSS display property from block to flex
  • Reordered "Remove from recents" action to appear first in the context menu
  • Added optional removeFromRecentsIcon prop to customize the remove action icon

Reviewed Changes

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

Show a summary per file
File Description
IModelTile.module.scss Changed favorite icon display from block to flex to prevent hover shift
ITwinTile.module.scss Applied same display fix for iTwin tiles
IModelGrid.tsx Added removeFromRecentsIcon prop and reordered context menu actions
IModelGrid.stories.tsx Added storybook examples demonstrating custom icon usage
omar-fix-favorite-hover_2025-11-05-20-19.json Added changelog entry for the patch release

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

@arome
arome merged commit 302207e into main Nov 6, 2025
5 checks passed
@arome
arome deleted the omar/fix-favorite-hover branch November 6, 2025 14:57
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.

4 participants