Skip to content

Commit cc8b1ce

Browse files
committed
Shade comment no longer appears in mobile view.
1 parent cfc5cc0 commit cc8b1ce

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/components/MapTable/MapTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export class MapTable extends Component<MapTableProps, {}> {
206206
<Styles.ChildrenContainer>
207207
<Description text={
208208
`Rates per ${ numeral(RatePerPopulation).format("0,0") } resident population.
209-
${parsedHash.map === "rate"
209+
${!isMobile && parsedHash.map === "rate"
210210
? ` Darker shades have higher rates.`
211211
: ""}` }
212212
/>

src/components/MapTable/MapTable.styles.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ export const ChildrenContainer: ComponentType<*> = (() => {
9898
return styled.div`
9999
display: flex;
100100
flex-direction: column;
101+
align-contents: stretch;
102+
103+
&>* {
104+
width: 100%;
105+
}
101106
102107
@media only screen and (max-width: 768px) {
103108
height: unset;

0 commit comments

Comments
 (0)