Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
96191dfb
Commit
96191dfb
authored
Sep 16, 2024
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix paddings
parent
f80a5e7e
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
7 additions
and
4 deletions
+7
-4
config.ts
playwright/utils/config.ts
+1
-0
breakpoints.ts
theme/foundations/breakpoints.ts
+2
-1
Layout.pw.tsx
ui/shared/layout/Layout.pw.tsx
+2
-2
Layout.pw.tsx_default_xl-screen-horizontal-navigation-1.png
...yout.pw.tsx_default_xl-screen-horizontal-navigation-1.png
+0
-0
Layout.pw.tsx_default_xl-screen-vertical-navigation-1.png
...Layout.pw.tsx_default_xl-screen-vertical-navigation-1.png
+0
-0
Layout.pw.tsx_default_xxl-screen-horizontal-navigation-1.png
...out.pw.tsx_default_xxl-screen-horizontal-navigation-1.png
+0
-0
Layout.pw.tsx_default_xxl-screen-vertical-navigation-1.png
...ayout.pw.tsx_default_xxl-screen-vertical-navigation-1.png
+0
-0
MainColumn.tsx
ui/shared/layout/components/MainColumn.tsx
+1
-0
Footer.tsx
ui/snippets/footer/Footer.tsx
+1
-1
No files found.
playwright/utils/config.ts
View file @
96191dfb
...
...
@@ -4,6 +4,7 @@ export const viewport = {
mobile
:
devices
[
'
iPhone 13 Pro
'
].
viewport
,
md
:
{
width
:
1001
,
height
:
800
},
xl
:
{
width
:
1600
,
height
:
1000
},
xxl
:
{
width
:
1920
,
height
:
1200
},
};
export
const
maskColor
=
'
#4299E1
'
;
// blue.400
...
...
theme/foundations/breakpoints.ts
View file @
96191dfb
...
...
@@ -4,8 +4,9 @@ const breakpoints = {
// md: '768px',
lg
:
'
1000px
'
,
xl
:
'
1440px
'
,
'
2xl
'
:
'
1920px
'
,
// these breakpoint are needed just to make others work
'
2
xl
'
:
'
3000px
'
,
'
3
xl
'
:
'
3000px
'
,
};
export
default
breakpoints
;
ui/shared/layout/Layout.pw.tsx
View file @
96191dfb
...
...
@@ -18,8 +18,8 @@ test('base view +@mobile', async({ render, mockEnvs, mockApiResponse }) => {
await
expect
(
component
).
toHaveScreenshot
();
});
test
.
describe
(
'
xl screen
'
,
()
=>
{
test
.
use
({
viewport
:
pwConfig
.
viewport
.
xl
});
test
.
describe
(
'
x
x
l screen
'
,
()
=>
{
test
.
use
({
viewport
:
pwConfig
.
viewport
.
x
x
l
});
test
(
'
vertical navigation
'
,
async
({
render
})
=>
{
const
component
=
await
render
(<
Layout
>
Page Content
</
Layout
>);
...
...
ui/shared/layout/__screenshots__/Layout.pw.tsx_default_xl-screen-horizontal-navigation-1.png
deleted
100644 → 0
View file @
f80a5e7e
51.1 KB
ui/shared/layout/__screenshots__/Layout.pw.tsx_default_xl-screen-vertical-navigation-1.png
deleted
100644 → 0
View file @
f80a5e7e
57.9 KB
ui/shared/layout/__screenshots__/Layout.pw.tsx_default_xxl-screen-horizontal-navigation-1.png
0 → 100644
View file @
96191dfb
54.7 KB
ui/shared/layout/__screenshots__/Layout.pw.tsx_default_xxl-screen-vertical-navigation-1.png
0 → 100644
View file @
96191dfb
62.3 KB
ui/shared/layout/components/MainColumn.tsx
View file @
96191dfb
...
...
@@ -16,6 +16,7 @@ const MainColumn = ({ children, className }: Props) => {
flexGrow=
{
1
}
w=
{
{
base
:
'
100%
'
,
lg
:
config
.
UI
.
navigation
.
layout
===
'
horizontal
'
?
'
100%
'
:
'
auto
'
}
}
paddingX=
{
{
base
:
3
,
lg
:
config
.
UI
.
navigation
.
layout
===
'
horizontal
'
?
6
:
12
}
}
paddingRight=
{
{
'
2xl
'
:
6
}
}
paddingTop=
{
{
base
:
`${ 12 + 52 }px`
,
lg
:
6
}
}
// 12px is top padding of content area, 52px is search bar height
paddingBottom=
{
8
}
>
...
...
ui/snippets/footer/Footer.tsx
View file @
96191dfb
...
...
@@ -162,7 +162,7 @@ const Footer = () => {
};
const
contentProps
:
GridProps
=
{
px
:
{
base
:
4
,
lg
:
config
.
UI
.
navigation
.
layout
===
'
horizontal
'
?
6
:
12
},
px
:
{
base
:
4
,
lg
:
config
.
UI
.
navigation
.
layout
===
'
horizontal
'
?
6
:
12
,
'
2xl
'
:
6
},
py
:
{
base
:
4
,
lg
:
8
},
gridTemplateColumns
:
{
base
:
'
1fr
'
,
lg
:
'
minmax(auto, 470px) 1fr
'
},
columnGap
:
{
lg
:
'
32px
'
,
xl
:
'
100px
'
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment