Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
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
LuckySwap
interface
Commits
a6549dd3
Unverified
Commit
a6549dd3
authored
Nov 29, 2022
by
Mike Grabowski
Committed by
GitHub
Nov 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: add outline to bottom navigation (#5415)
* fix: add outline to bottom navigation * Update index.tsx
parent
9dabacef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
17 deletions
+20
-17
index.tsx
src/components/NavBar/index.tsx
+20
-2
style.css.ts
src/components/NavBar/style.css.ts
+0
-15
No files found.
src/components/NavBar/index.tsx
View file @
a6549dd3
...
...
@@ -9,6 +9,7 @@ import { Row } from 'nft/components/Flex'
import
{
UniIcon
}
from
'
nft/components/icons
'
import
{
ReactNode
}
from
'
react
'
import
{
NavLink
,
NavLinkProps
,
useLocation
}
from
'
react-router-dom
'
import
styled
from
'
styled-components/macro
'
import
{
Bag
}
from
'
./Bag
'
import
{
ChainSelector
}
from
'
./ChainSelector
'
...
...
@@ -16,6 +17,23 @@ import { MenuDropdown } from './MenuDropdown'
import
{
SearchBar
}
from
'
./SearchBar
'
import
*
as
styles
from
'
./style.css
'
const
MobileBottomBar
=
styled
.
div
`
position: fixed;
display: flex;
bottom: 0;
right: 0;
left: 0;
justify-content: space-between;
padding: 4px 8px;
height: 56px;
background:
${({
theme
})
=>
theme
.
backgroundSurface
}
;
border-top: 1px solid
${({
theme
})
=>
theme
.
backgroundOutline
}
;
@media screen and (min-width:
${({
theme
})
=>
theme
.
breakpoint
.
md
}
px) {
display: none;
}
`
interface
MenuItemProps
{
href
:
string
id
?:
NavLinkProps
[
'
id
'
]
...
...
@@ -114,12 +132,12 @@ const Navbar = () => {
</
Box
>
</
Box
>
</
nav
>
<
Box
className=
{
styles
.
mobileBottomBar
}
>
<
MobileBottomBar
>
<
PageTabs
/>
<
Box
marginY=
"4"
>
<
MenuDropdown
/>
</
Box
>
</
Box
>
</
MobileBottomBar
>
</>
)
}
...
...
src/components/NavBar/style.css.ts
View file @
a6549dd3
...
...
@@ -97,18 +97,3 @@ export const activeMenuItem = style([
background
:
'
backgroundFloating
'
,
}),
])
export
const
mobileBottomBar
=
style
([
sprinkles
({
position
:
'
fixed
'
,
display
:
{
sm
:
'
flex
'
,
lg
:
'
none
'
},
bottom
:
'
0
'
,
right
:
'
0
'
,
left
:
'
0
'
,
justifyContent
:
'
space-between
'
,
paddingY
:
'
4
'
,
paddingX
:
'
8
'
,
height
:
'
56
'
,
background
:
'
backgroundSurface
'
,
}),
])
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