Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

Summary

Adds a red blur indicator to the header tab bar that shows when the currently active tab is scrolled out of view. The indicator appears on the left side when the active tab is scrolled off to the left, and on the right side when scrolled off to the right.

Changes:

  • Added useActiveTabPosition hook that tracks whether the active tab is visible, scrolled left, or scrolled right
  • Modified useScrollActiveTabIntoView to expose tabRefsMap for position calculations
  • Added red blur indicator elements that render conditionally based on active tab position

Review & Testing Checklist for Human

  • Verify visual appearance: Open the app with multiple tabs, scroll the tab bar, and confirm the red blur indicator appears on the correct side when the active tab is out of view
  • Check blur visibility: The blur uses w-3 h-3 blur-sm bg-red-500 - verify this is visible enough against the header background
  • Test edge cases: Check behavior when active tab is partially visible, when there's only one tab, and when switching between tabs while scrolled

Test Plan

  1. Open the desktop app
  2. Create enough tabs to require scrolling in the header
  3. Select a tab, then scroll the tab bar so the selected tab is out of view
  4. Verify a red blur appears on the side where the active tab is located
  5. Scroll back to make the active tab visible and verify the blur disappears

Notes

Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@netlify
Copy link

netlify bot commented Jan 8, 2026

Deploy Preview for hyprnote-storybook canceled.

Name Link
🔨 Latest commit 7d0766b
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/695f327ea27b84000869101d

@netlify
Copy link

netlify bot commented Jan 8, 2026

Deploy Preview for howto-fix-macos-audio-selection canceled.

Name Link
🔨 Latest commit 7d0766b
🔍 Latest deploy log https://app.netlify.com/projects/howto-fix-macos-audio-selection/deploys/695f327e07bd760008759aab

@netlify
Copy link

netlify bot commented Jan 8, 2026

Deploy Preview for hyprnote canceled.

Name Link
🔨 Latest commit 7d0766b
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/695f327ee7db6b000802bfa0

@ComputelessComputer ComputelessComputer deleted the devin/1767846310-active-tab-red-blur branch January 9, 2026 06:12
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.

2 participants