Skip to content

Commit c5763b6

Browse files
authored
Route description should be multiline (#1391)
Co-authored-by: Kevin Peters <kevin@wormholelabs.xyz>
1 parent aa25946 commit c5763b6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

wormhole-connect/src/views/Bridge/RouteOptions.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ const useStyles = makeStyles()((theme: any) => ({
8888
gap: '8px',
8989
[theme.breakpoints.down('sm')]: {
9090
gap: '4px',
91+
alignContent: 'center',
9192
},
9293
},
9394
routeRight: {
@@ -103,6 +104,17 @@ const useStyles = makeStyles()((theme: any) => ({
103104
opacity: '0.6',
104105
fontSize: '12px',
105106
},
107+
multiLineChip: {
108+
[theme.breakpoints.down('sm')]: {
109+
height: 'auto',
110+
'& .MuiChip-label': {
111+
display: 'block',
112+
whiteSpace: 'normal',
113+
textAlign: 'center',
114+
maxWidth: '256px',
115+
},
116+
},
117+
},
106118
}));
107119

108120
export function Banner(props: { text?: string; route?: RouteData }) {
@@ -227,13 +239,15 @@ function RouteOption(props: { route: RouteData; disabled: boolean }) {
227239
color="success"
228240
variant="outlined"
229241
size="small"
242+
className={classes.multiLineChip}
230243
/>
231244
) : (
232245
<Chip
233246
label="Approve a txn from your destination chain wallet"
234247
color="warning"
235248
variant="outlined"
236249
size="small"
250+
className={classes.multiLineChip}
237251
/>
238252
)}
239253
</div>

0 commit comments

Comments
 (0)