mirror of
https://github.com/lingble/twenty.git
synced 2025-10-29 11:52:28 +00:00
Ensure the text of select control is aligned on the left (#8238)
Fixes:  The regression is due a recent change I made to the SelectControl component: https://github.com/twentyhq/twenty/pull/8125. The SelectControls get applied `text-align: center` due to the styles `react-datepicker` applies to the header component. My grid implementation makes the label take all the available width. I could have let it take an `auto` width, but I think it's better to set the `text-align` property and ensure the `SelectControl` component behaves predictably.
This commit is contained in:
committed by
GitHub
parent
b1e9922660
commit
b3f95d6db9
@@ -26,6 +26,7 @@ const StyledControlContainer = styled.div<{
|
||||
color: ${({ disabled, theme }) =>
|
||||
disabled ? theme.font.color.tertiary : theme.font.color.primary};
|
||||
cursor: ${({ disabled }) => (disabled ? 'not-allowed' : 'pointer')};
|
||||
text-align: left;
|
||||
`;
|
||||
|
||||
const StyledIconChevronDown = styled(IconChevronDown)<{
|
||||
|
||||
Reference in New Issue
Block a user