Skip to content

Commit

Permalink
fixed ellipsis
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Dobkowski committed Aug 13, 2024
1 parent 917fe56 commit 9efe7b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/components/ContextSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ const StyledValue = styled(Typography)`
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
width: calc(100% - 30px);
`;

const OptionsWrapper = styled.div`
Expand Down
8 changes: 7 additions & 1 deletion src/features/service/components/Service/ServiceDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ const StyledDetailsRowSelect = styled(Row)`
padding: 0;
& > div {
width: calc(100% - 40px);
& > p {
font-weight: 700;
}
Expand All @@ -68,6 +70,10 @@ const StyledDetailsRowSelect = styled(Row)`
}
`;

const StyledContextSelect = styled(ContextSelect)`
width: calc(100% - 20px);
}`;

const DetailsRow: React.FC<DetailsRowProps> = ({ name, value, icon }) => {
return (
<Row mb={0.5} w="100%" jc="flex-start" ai="flex-start">
Expand Down Expand Up @@ -151,7 +157,7 @@ const ServiceDetails = () => {
<IconWrapper>
<IconMapPin />
</IconWrapper>
<ContextSelect
<StyledContextSelect
label={""}
value={location}
options={locationsOptions}
Expand Down

0 comments on commit 9efe7b7

Please sign in to comment.