Skip to content

Commit

Permalink
fix: Minor bugs in UI (#7891)
Browse files Browse the repository at this point in the history
## Description

- This PR fixed #7890

---------

Co-authored-by: Lucas Bordeau <[email protected]>
  • Loading branch information
harshit078 and lucasbordeau authored Nov 7, 2024
1 parent 60349d0 commit 4f2b055
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';

import { MOBILE_VIEWPORT } from 'twenty-ui';
import { ActionMenuEntry } from '@/action-menu/types/ActionMenuEntry';
import { MenuItemAccent } from '@/ui/navigation/menu-item/types/MenuItemAccent';

Expand All @@ -26,7 +26,11 @@ const StyledButton = styled.div<{ accent: MenuItemAccent }>`
background: ${({ theme, accent }) =>
accent === 'danger'
? theme.background.danger
: theme.background.tertiary};
: theme.background.transparent.light};
}
@media (max-width: ${MOBILE_VIEWPORT}px) {
padding: ${({ theme }) => theme.spacing(1)};
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const StyledNumChildren = styled.div`
height: 24px;
justify-content: center;
line-height: ${({ theme }) => theme.text.lineHeight.lg};
width: 16px;
width: 22px;
`;

const StyledHeaderActions = styled.div`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ import {
AnimatedContainer,
FloatingIconButton,
IconComponent,
MOBILE_VIEWPORT,
} from 'twenty-ui';

const StyledButtonContainer = styled.div`
margin: ${({ theme }) => theme.spacing(1)};
@media (max-width: ${MOBILE_VIEWPORT}px) {
position: relative;
right: 7px;
}
`;

type RecordTableCellButtonProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const StyledIMaskInput = styled(IMaskInput)<StyledInputProps>`
margin: 0;
${TEXT_INPUT_STYLE}
width: 100%;
padding: ${({ theme }) => `${theme.spacing(0)} ${theme.spacing(1)}`};
padding: ${({ theme }) => `${theme.spacing(0)} ${theme.spacing(1.5)}`};
`;

const StyledContainer = styled.div`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const CurrencyPickerDropdownSelect = ({
);

return (
<DropdownMenu width="200px" disableBlur>
<DropdownMenu width="240px" disableBlur>
<DropdownMenuSearchInput
value={searchFilter}
onChange={(event) => setSearchFilter(event.target.value)}
Expand Down

0 comments on commit 4f2b055

Please sign in to comment.