Skip to content

Commit faa2f4f

Browse files
committed
Improve page margin
1 parent cfd5cd7 commit faa2f4f

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

src/components/DeclarationsPage.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ const ContentColumn = styled.div`
139139
display: flex;
140140
flex-direction: column;
141141
min-height: 0;
142+
padding-right: 32px;
143+
144+
@media (max-width: 768px) {
145+
padding: 0 8px;
146+
}
142147
`;
143148

144149
const MobileSidebarOverlay = styled.div`
@@ -181,7 +186,7 @@ const SidebarPanel = styled.div`
181186

182187
const PageGrid = styled.div`
183188
display: grid;
184-
grid-template-columns: 340px 1fr;
189+
grid-template-columns: 372px 1fr;
185190
min-height: 100dvh;
186191
187192
@media (max-width: 768px) {

src/components/Docs/utils/filtering.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ export function filterItems<T extends HasNameAndMetadata>(
123123
);
124124
}
125125

126-
const hasFieldFilter = remainingWords.length > 0 || metadataKeys.length > 0 || parsed.offsets.size > 0;
126+
const hasFieldFilter =
127+
remainingWords.length > 0 || metadataKeys.length > 0 || parsed.offsets.size > 0;
127128

128129
if (!collapseNonMatching) {
129130
return {

src/components/layout/Content.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { styled } from "@linaria/react";
22

33
export const ContentWrapper = styled.main`
4-
padding: 0 24px 24px 24px;
4+
padding-bottom: 24px;
55
min-width: 0;
66
77
@media (max-width: 768px) {
88
grid-column: 1;
9-
padding: 0 8px 16px;
9+
padding-bottom: 16px;
1010
}
1111
`;
1212

src/components/layout/NavBar.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ const NavBarContentCell = styled.div`
196196
display: flex;
197197
align-items: center;
198198
gap: 14px;
199-
padding: 10px 14px 10px 24px;
199+
padding: 10px 0;
200200
min-width: 0;
201201
flex-shrink: 0;
202202
position: sticky;
@@ -206,7 +206,6 @@ const NavBarContentCell = styled.div`
206206
207207
@media (max-width: 768px) {
208208
grid-column: 1;
209-
padding: 10px 14px;
210209
}
211210
`;
212211

src/components/layout/Sidebar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ export const SidebarWrapper = styled.div`
115115
overflow: hidden;
116116
min-width: 0;
117117
padding: 6px 8px 4px 10px;
118+
margin-right: 32px;
118119
background-color: var(--sidebar);
119120
position: sticky;
120121
top: 0;

0 commit comments

Comments
 (0)