Skip to content

Commit d93af26

Browse files
committed
fix select icons crop on mobiles
1 parent ce748f1 commit d93af26

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

widget/src/components/ProjectSelector.tsx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ const ProtocolIcon = ({ logoUri }: { logoUri?: string }) => (
2424
<Box
2525
borderRadius={"50%"}
2626
overflow={"hidden"}
27-
width={"24px"}
28-
height={"24px"}
29-
minWidth={"24px"}
27+
width={"28px"}
28+
height={"28px"}
29+
minWidth={"28px"}
3030
marginRight={"8px"}
3131
display={"flex"}
3232
alignItems={"center"}
3333
justifyContent={"center"}
3434
backgroundColor={"gray.50"}
3535
>
36-
{logoUri && <img src={logoUri} alt="" width={"24px"} height={"24px"} />}
36+
{logoUri && <img src={logoUri} alt="" width={"28px"} height={"28px"} />}
3737
</Box>
3838
);
3939

@@ -100,7 +100,12 @@ const ProjectSelector = ({
100100
</Select.Control>
101101

102102
<Select.Positioner>
103-
<SelectContent portalled={false} borderWidth={1} borderRadius={"xl"} bg={"bg"}>
103+
<SelectContent
104+
portalled={false}
105+
borderWidth={1}
106+
borderRadius={"xl"}
107+
bg={"bg"}
108+
>
104109
{projectOptions.items.map((item) => {
105110
return (
106111
<SelectItem key={item.slug} item={item}>

widget/src/components/ui/select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const SelectValueText = React.forwardRef<
6969
>(function SelectValueText(props, ref) {
7070
const { children, ...rest } = props;
7171
return (
72-
<ChakraSelect.ValueText {...rest} ref={ref}>
72+
<ChakraSelect.ValueText {...rest} ref={ref} maxWidth={"100%"} minH={"40px"}>
7373
<ChakraSelect.Context>
7474
{(select) => {
7575
const items = select.selectedItems;

0 commit comments

Comments
 (0)