fix: fix some views dropdown design issues (#1648)

* fix: fix some views dropdown design issues

Closes #1610, Closes #1601

* Handle max-width on view picker

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Thaïs
2023-09-20 05:01:01 +02:00
committed by GitHub
parent 3bde7bc252
commit 3f600146b1
4 changed files with 13 additions and 5 deletions

View File

@ -72,7 +72,8 @@ const StyledButton = styled.button<
justify-content: center;
padding: 0;
position: relative;
transition: background 0.1s ease;
transition: background ${({ theme }) => theme.animation.duration.instant}s
ease;
white-space: nowrap;
${({ position, size }) => {

View File

@ -11,6 +11,7 @@ import {
const StyledFloatingIconButtonGroupContainer = styled.div`
backdrop-filter: blur(20px);
background-color: ${({ theme }) => theme.background.primary};
border-radius: ${({ theme }) => theme.border.radius.sm};
box-shadow: ${({ theme }) =>
`0px 2px 4px 0px ${theme.background.transparent.light}, 0px 0px 4px 0px ${theme.background.transparent.medium}`};