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
fd4bbbc3
Commit
fd4bbbc3
authored
Apr 05, 2024
by
Max Alekseenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove footer and scroll on the app page
parent
6fc7ec1a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
+13
-11
MarketplaceApp.tsx
ui/pages/MarketplaceApp.tsx
+4
-4
LayoutApp.tsx
ui/shared/layout/LayoutApp.tsx
+4
-3
Container.tsx
ui/shared/layout/components/Container.tsx
+5
-4
No files found.
ui/pages/MarketplaceApp.tsx
View file @
fd4bbbc3
import
{
Box
,
Center
,
useColorMode
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
Center
,
useColorMode
,
Flex
}
from
'
@chakra-ui/react
'
;
import
{
useQuery
}
from
'
@tanstack/react-query
'
;
import
{
DappscoutIframeProvider
,
useDappscoutIframe
}
from
'
dappscout-iframe
'
;
import
{
useRouter
}
from
'
next/router
'
;
...
...
@@ -71,7 +71,7 @@ const MarketplaceAppContent = ({ address, data, isPending }: Props) => {
return
(
<
Center
h=
"100vh"
flexGrow=
{
1
}
mx=
{
{
base
:
-
4
,
lg
:
-
6
}
}
>
{
(
isFrameLoading
)
&&
(
...
...
@@ -142,7 +142,7 @@ const MarketplaceApp = () => {
throwOnResourceLoadError
(
query
);
return
(
<>
<
Flex
flexDirection=
"column"
h=
"100%"
>
<
MarketplaceAppTopBar
data=
{
data
}
isLoading=
{
isPending
||
isSecurityReportsLoading
}
...
...
@@ -159,7 +159,7 @@ const MarketplaceApp = () => {
>
<
MarketplaceAppContent
address=
{
address
}
data=
{
data
}
isPending=
{
isPending
}
/>
</
DappscoutIframeProvider
>
</>
</
Flex
>
);
};
...
...
ui/shared/layout/LayoutApp.tsx
View file @
fd4bbbc3
...
...
@@ -10,23 +10,24 @@ import * as Layout from './components';
const
LayoutDefault
=
({
children
}:
Props
)
=>
{
return
(
<
Layout
.
Container
>
<
Layout
.
Container
overflowY=
"hidden"
height=
"100vh"
>
<
Layout
.
TopRow
/>
<
HeaderMobile
/>
<
Layout
.
MainArea
>
<
Layout
.
MainColumn
paddingTop=
{
{
base
:
16
,
lg
:
6
}
}
paddingBottom=
{
0
}
paddingX=
{
{
base
:
4
,
lg
:
6
}
}
height=
{
{
base
:
'
calc(100vh - 92px)
'
,
sm
:
'
auto
'
}
}
>
<
HeaderDesktop
isMarketplaceAppPage
/>
<
AppErrorBoundary
>
<
Layout
.
Content
pt=
{
{
base
:
0
,
lg
:
4
}
}
>
<
Layout
.
Content
pt=
{
{
base
:
0
,
lg
:
4
}
}
flexGrow=
{
1
}
>
{
children
}
</
Layout
.
Content
>
</
AppErrorBoundary
>
</
Layout
.
MainColumn
>
</
Layout
.
MainArea
>
<
Layout
.
Footer
/>
</
Layout
.
Container
>
);
};
...
...
ui/shared/layout/components/Container.tsx
View file @
fd4bbbc3
import
{
Box
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
chakra
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
interface
Props
{
children
:
React
.
ReactNode
;
className
?:
string
;
}
const
Container
=
({
children
}:
Props
)
=>
{
const
Container
=
({
children
,
className
}:
Props
)
=>
{
return
(
<
Box
minWidth=
{
{
base
:
'
100vw
'
,
lg
:
'
fit-content
'
}
}
>
<
Box
className=
{
className
}
minWidth=
{
{
base
:
'
100vw
'
,
lg
:
'
fit-content
'
}
}
>
{
children
}
</
Box
>
);
};
export
default
React
.
memo
(
Container
);
export
default
React
.
memo
(
chakra
(
Container
)
);
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