Skip to content

Feature/tab orb favicon - #18

Merged
nemitha2005 merged 7 commits into
developfrom
feature/tab-orb-favicon
May 15, 2026
Merged

Feature/tab orb favicon#18
nemitha2005 merged 7 commits into
developfrom
feature/tab-orb-favicon

Conversation

@nemitha2005

Copy link
Copy Markdown
Owner

No description provided.

Replaces the blank grey square favicon placeholder with a geometric
Orb inline SVG icon on:
- New Tab (no URL loaded)
- History, Bookmarks, Downloads internal-page tabs

Real website tabs continue showing the site favicon from Google S2.
Favicon load errors fall back to the Orb logo gracefully.

Also moves public/tab.svg to src/renderer/assets/orb-logo.svg
(proper electron-vite renderer asset location).
- Import orb-logo.svg via Vite ?url so the actual branded SVG
  is used instead of the custom inline geometric shape
- Add .tab-orb-logo CSS: 14x14 flex-center matching .tab-fav
  dimensions so the logo aligns perfectly with tab text
- Fix compact hover: .tab-orb-logo also fades out on hover
  alongside .tab-fav and .tab-fav-ph
- Add SVG ?url type declaration to style-imports.d.ts
  so TypeScript accepts the Vite asset URL import
- Favicon load error now hides the <img> and reveals Orb fallback
- Wrap tabs in a horizontal overflow-x-auto scroll region
- Pin the 'New Tab' button to the right of the scroll region
- Add mouse wheel horizontal scrolling support for tabs
- Auto-scroll active tabs into view upon selection
- Hide scrollbars completely via CSS to maintain sleek UI
- Adjust compact mode to base width off the new scroll region
…pinned to corner

- Wrap tab strip and new tab button in a flex-1 container
- Remove flex-1 from scroll region to shrink to contents
- Ensure new tab button aligns closely to the rightmost tab
- Match Chrome responsive tab layout behavior
…t behavior

- Replaced raw flex-basis with explicit JS width calculations based on available space.
- Prevent tabs from instantly squishing to 28px due to container constraint conflicts.
- Enforce a 72px minimum width before tabs start horizontally scrolling, mimicking Chrome.
- Removed the legacy 28px compact mode entirely for a cleaner, unified tab strip.
- Removed permanent border and background from the new tab button.
- Applied a circular 'rounded-full' background on hover matching Chrome.
- Vertically centered the button relative to the tab strip for better alignment.
@nemitha2005
nemitha2005 merged commit 4a45657 into develop May 15, 2026
2 checks passed
@nemitha2005
nemitha2005 deleted the feature/tab-orb-favicon branch May 15, 2026 16:19
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.

1 participant