Skip to content

Commit 5745f2d

Browse files
authored
Misc Mobile Margin patching (#2056)
* pretty email wrap * fix NuLawLab on small viewsizes
1 parent ae4f590 commit 5745f2d

4 files changed

Lines changed: 11 additions & 2 deletions

File tree

components/AboutPagesCard/AboutPagesCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const AboutPagesCard: FC<PropsWithChildren<{ title: string }>> = ({
2525
children
2626
}) => {
2727
return (
28-
<Card className="m-5 rounded-3 bg-white">
28+
<Card className="mx-sm-5 mx-xs-3 my-5 rounded-3 bg-white">
2929
<StyledHeader
3030
as="h1"
3131
className="bg-secondary text-white overflow-hidden fs-sm-1 pt-2 pt-sm-3 pb-1 pb-sm-3 ps-4 ps-sm-5 pe-5"

components/shared/CommonComponents.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { PrettyEmailWrap } from "react-pretty-email-wrap"
12
import styled from "styled-components"
23
import { Container } from "../bootstrap"
34
import * as links from "../links"
@@ -15,7 +16,9 @@ export const MemberItem = ({
1516
<StyledContainer className="py-3 px-4">
1617
<NameContainer>{name}</NameContainer>
1718
{email ? (
18-
<EmailContainer href={"mailto:" + email}>{email}</EmailContainer>
19+
<EmailContainer href={"mailto:" + email}>
20+
<PrettyEmailWrap>{email}</PrettyEmailWrap>
21+
</EmailContainer>
1922
) : null}
2023
<DescrContainer className="my-3">{descr}</DescrContainer>
2124
</StyledContainer>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
"react-is": "^18.2.0",
126126
"react-markdown": "^8.0.4",
127127
"react-overlays": "^5.1.1",
128+
"react-pretty-email-wrap": "^0.1.4",
128129
"react-query": "^3.39.3",
129130
"react-redux": "^8.0.2",
130131
"react-select": "^5.2.2",

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15194,6 +15194,11 @@ react-overlays@^5.1.1:
1519415194
uncontrollable "^7.2.1"
1519515195
warning "^4.0.3"
1519615196

15197+
react-pretty-email-wrap@^0.1.4:
15198+
version "0.1.4"
15199+
resolved "https://registry.yarnpkg.com/react-pretty-email-wrap/-/react-pretty-email-wrap-0.1.4.tgz#de78418b6002e192f272114e1ce458bd17bd2ea1"
15200+
integrity sha512-J/INGlIDT6F9Mzn102IHw2WMdg7RfsoJ5EotlI00sTouJ4vP/GtayAttLgVFngVQX4Q0AQLgdqkhEUrdlRDajA==
15201+
1519715202
react-query@^3.32.1, react-query@^3.39.3:
1519815203
version "3.39.3"
1519915204
resolved "https://registry.npmjs.org/react-query/-/react-query-3.39.3.tgz"

0 commit comments

Comments
 (0)