Skip to content

Commit

Permalink
feat(search/sources-list): enhance item interactions and hover states (
Browse files Browse the repository at this point in the history
…#96)

- Improve interactions and hover states for searched items in the sources list
- Ensure the sources list, displayed at full height on the right of the chat bubbles, has consistent and improved user interactions

Changes summary:
    - Enhanced the interactions and hover states for items in the sources list, which is displayed at full height on the right of the chat bubbles when the "Sources" button is pressed, for a better user experience.
  • Loading branch information
itsmartashub committed Dec 21, 2024
1 parent 1cdbe1f commit 424b4b5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/sass/elements/_search.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* ___ Search list of sources showed on the right h-full of the chats container */
[data-testid="screen-threadFlyOut"]:has([data-testid="bar-search-sources-header"]) {

/* Add hover state for searched items */
a[class*="hover:bg-token-main-surface-secondary"] {
&:hover {
--main-surface-secondary: var(--c-surface-3) !important;
transform: translateY(-2px);
}
}
}
1 change: 1 addition & 0 deletions src/sass/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
@import 'pages/_gpt-store';
@import 'elements/_transitions';
@import 'elements/_chats-textarea-max-width';
@import 'elements/_search';

/* ChatGPT A/B Testing */
@import 'elements/_composer';
Expand Down

0 comments on commit 424b4b5

Please sign in to comment.