Skip to content

Commit d128815

Browse files
authored
Merge pull request #3153 from pyth-network/bduran/insights-hub-mobile-overflow
fix(insights-hub): fixed price feed description and price getting pushed off screen on mobile devices
2 parents 8723e12 + c3549d5 commit d128815

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

packages/component-library/src/EntityList/index.module.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@
5252

5353
.itemHeader,
5454
.itemDetailsItem {
55+
align-items: center;
5556
display: flex;
5657
flex-flow: row nowrap;
57-
align-items: center;
58+
gap: theme.spacing(2); // give items a little breathing room if text is long
5859
justify-content: space-between;
5960
}
6061

packages/component-library/src/SymbolPairTag/index.module.scss

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,21 @@
5050

5151
.description {
5252
color: theme.color("muted");
53-
overflow: hidden;
54-
text-overflow: ellipsis;
55-
53+
// this helps prevent long feed descriptions from looking gross
54+
// and overflowing off the page, pushing the curren values off the page,
55+
// too
56+
overflow: initial;
57+
text-overflow: initial;
58+
white-space: normal;
59+
5660
@include theme.text("xs", "medium");
61+
62+
// reset the above on large devices, to match when the price feeds grid switches over
63+
@include theme.breakpoint("2xl") {
64+
overflow: hidden;
65+
text-overflow: ellipsis;
66+
white-space: unset;
67+
}
5768
}
5869
}
5970

0 commit comments

Comments
 (0)