-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix icon shrink and use avatar for logo and icons #9117
fix icon shrink and use avatar for logo and icons #9117
Conversation
ehconitin
commented
Dec 18, 2024
- Fixed icon shrinking on tabs. The introduction of EllipsisDisplay takes 100% of the width, thus shrinking the icons.
- Removed scroll wrapper tablist. This was removed in 8726 workflow add a test button in workflow code step #9016 but reintroduced in Refacto scroll + Aggregate queries for view groups #9089. This reintroduction made the dark border below the active tab disappear.
- Used Avatar for icon and logo rendering following the changes made in Fix: Replace styled logo with Avatar component for workspace logo in NavigationDrawerHeader #9093
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR fixes icon shrinking in tabs and standardizes logo/icon rendering using the Avatar component, while also addressing scroll wrapper issues affecting tab borders.
- Added
flex-shrink: 0
toStyledIconContainer
in/packages/twenty-front/src/modules/ui/layout/tab/components/Tab.tsx
to prevent icon compression - Replaced custom logo/icon implementations with unified
Avatar
component inTab.tsx
for consistent styling - Removed
tabList
scroll wrapper context to fix disappearing dark borders on active tabs - Added native
overflow-y: scroll
with hidden scrollbar toStyledTabsContainer
inTabList.tsx
3 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile
packages/twenty-front/src/modules/ui/layout/tab/components/Tab.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/ui/layout/tab/components/Tab.tsx
Outdated
Show resolved
Hide resolved
@ehconitin why do we remove the scrollwrapper in tab list? we want it in case we have too many tabs and need horizontal scrolling isn't it? |
I am not sure @charlesBochet, I thought this was discussed before merging #8726. |
@charlesBochet the scrollwrapper had been removed in a PR that was merged before our refacto, but that we did not see because i had not pulled main recently enough @ehconitin reached out this morning since our refacto was causing an issue on tablist. It was ok for me to remove our scrollwrapper as it had been removed already before |
That's a mistake, we still need the scrollWrapper! |
…ast-follows-and-cleaning
@charlesBochet added it back! ready for review! |
Discussed this one with @Bonapara to understand the change:
|
Log
|