Skip to content

Commit b9d1f53

Browse files
committed
chore(web): modals width adjustment on mobile
1 parent b6ef17b commit b9d1f53

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

web/src/components/Popup/MiniGuides/MainStructureTemplate.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ import { useFocusOutside } from "hooks/useFocusOutside";
99
const Container = styled.div<{ isVisible: boolean }>`
1010
display: ${({ isVisible }) => (isVisible ? "flex" : "none")};
1111
margin: 0 auto;
12-
width: auto;
1312
z-index: 10;
1413
position: fixed;
15-
width: 82vw;
14+
width: 86vw;
1615
flex-direction: column;
1716
1817
top: 45%;
@@ -35,7 +34,7 @@ const Container = styled.div<{ isVisible: boolean }>`
3534
const LeftContainer = styled.div`
3635
display: grid;
3736
grid-template-rows: auto 1fr auto;
38-
width: 82vw;
37+
width: 86vw;
3938
padding: calc(24px + (32 - 24) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
4039
padding-bottom: 32px;
4140
background-color: ${({ theme }) => theme.whiteBackground};
@@ -116,7 +115,7 @@ const Close = styled.label`
116115
`;
117116

118117
const RightContainer = styled.div`
119-
width: 82vw;
118+
width: 86vw;
120119
position: relative;
121120
display: flex;
122121
flex-direction: column;

web/src/components/Popup/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const Container = styled.div`
5252
flex-direction: column;
5353
align-items: center;
5454
justify-content: center;
55-
width: 82vw;
55+
width: 86vw;
5656
max-width: 600px;
5757
border-radius: 3px;
5858
border: 1px solid ${({ theme }) => theme.stroke};

web/src/layout/Header/navbar/DappList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const Container = styled.div`
3333
flex-direction: column;
3434
align-items: center;
3535
36-
width: 82%;
36+
width: 86vw;
3737
max-width: 480px;
3838
min-width: 300px;
3939
border-radius: 3px;

web/src/layout/Header/navbar/Menu/Help.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const Container = styled.div`
1919
position: absolute;
2020
max-height: 80vh;
2121
overflow-y: auto;
22-
width: 82%;
22+
width: 86vw;
2323
max-width: 444px;
2424
top: 5%;
2525
left: 50%;

web/src/layout/Header/navbar/Menu/Settings/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const StyledSettingsText = styled.div`
4545

4646
const StyledTabs = styled(Tabs)`
4747
padding: 0 calc(8px + (32 - 8) * ((100vw - 300px) / (1250 - 300)));
48-
width: 82vw;
48+
width: 86vw;
4949
max-width: 660px;
5050
5151
${landscapeStyle(

0 commit comments

Comments
 (0)