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
d41a5a48
Unverified
Commit
d41a5a48
authored
Nov 02, 2022
by
lynn
Committed by
GitHub
Nov 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: nav bar icon sizes (#5051)
* init * fix
parent
2fe444f9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
MenuDropdown.tsx
src/components/NavBar/MenuDropdown.tsx
+1
-1
NavIcon.css.ts
src/components/NavBar/NavIcon.css.ts
+1
-1
NavIcon.tsx
src/components/NavBar/NavIcon.tsx
+1
-0
ShoppingBag.tsx
src/components/NavBar/ShoppingBag.tsx
+2
-2
No files found.
src/components/NavBar/MenuDropdown.tsx
View file @
d41a5a48
...
@@ -123,7 +123,7 @@ export const MenuDropdown = () => {
...
@@ -123,7 +123,7 @@ export const MenuDropdown = () => {
<>
<>
<
Box
position=
"relative"
ref=
{
ref
}
>
<
Box
position=
"relative"
ref=
{
ref
}
>
<
NavIcon
isActive=
{
isOpen
}
onClick=
{
toggleOpen
}
>
<
NavIcon
isActive=
{
isOpen
}
onClick=
{
toggleOpen
}
>
<
EllipsisIcon
width=
{
20
}
height=
{
20
}
/>
<
EllipsisIcon
viewBox=
"0 0 20 20"
width=
{
24
}
height=
{
24
}
/>
</
NavIcon
>
</
NavIcon
>
{
isOpen
&&
(
{
isOpen
&&
(
...
...
src/components/NavBar/NavIcon.css.ts
View file @
d41a5a48
...
@@ -4,6 +4,7 @@ import { sprinkles, vars } from '../../nft/css/sprinkles.css'
...
@@ -4,6 +4,7 @@ import { sprinkles, vars } from '../../nft/css/sprinkles.css'
export
const
navIcon
=
style
([
export
const
navIcon
=
style
([
sprinkles
({
sprinkles
({
alignItems
:
'
center
'
,
position
:
'
relative
'
,
position
:
'
relative
'
,
display
:
'
flex
'
,
display
:
'
flex
'
,
flexDirection
:
'
column
'
,
flexDirection
:
'
column
'
,
...
@@ -11,7 +12,6 @@ export const navIcon = style([
...
@@ -11,7 +12,6 @@ export const navIcon = style([
justifyContent
:
'
center
'
,
justifyContent
:
'
center
'
,
textAlign
:
'
center
'
,
textAlign
:
'
center
'
,
cursor
:
'
pointer
'
,
cursor
:
'
pointer
'
,
padding
:
'
10
'
,
borderRadius
:
'
8
'
,
borderRadius
:
'
8
'
,
transition
:
'
250
'
,
transition
:
'
250
'
,
}),
}),
...
...
src/components/NavBar/NavIcon.tsx
View file @
d41a5a48
...
@@ -18,6 +18,7 @@ export const NavIcon = ({ children, isActive, onClick }: NavIconProps) => {
...
@@ -18,6 +18,7 @@ export const NavIcon = ({ children, isActive, onClick }: NavIconProps) => {
color=
{
isActive
?
'
textPrimary
'
:
'
textSecondary
'
}
color=
{
isActive
?
'
textPrimary
'
:
'
textSecondary
'
}
onClick=
{
onClick
}
onClick=
{
onClick
}
height=
"40"
height=
"40"
width=
"40"
>
>
{
children
}
{
children
}
</
Box
>
</
Box
>
...
...
src/components/NavBar/ShoppingBag.tsx
View file @
d41a5a48
...
@@ -29,14 +29,14 @@ export const ShoppingBag = () => {
...
@@ -29,14 +29,14 @@ export const ShoppingBag = () => {
<
NavIcon
onClick=
{
toggleBag
}
>
<
NavIcon
onClick=
{
toggleBag
}
>
{
isProfilePage
?
(
{
isProfilePage
?
(
<>
<>
<
TagIcon
width=
{
20
}
height=
{
20
}
/>
<
TagIcon
viewBox=
"0 0 20 20"
width=
{
24
}
height=
{
24
}
/>
{
sellQuantity
?
(
{
sellQuantity
?
(
<
Box
className=
{
styles
.
bagQuantity
}
>
{
sellQuantity
>
99
?
<
HundredsOverflowIcon
/>
:
sellQuantity
}
</
Box
>
<
Box
className=
{
styles
.
bagQuantity
}
>
{
sellQuantity
>
99
?
<
HundredsOverflowIcon
/>
:
sellQuantity
}
</
Box
>
)
:
null
}
)
:
null
}
</>
</>
)
:
(
)
:
(
<>
<>
<
BagIcon
width=
{
20
}
height=
{
20
}
/>
<
BagIcon
viewBox=
"0 0 20 20"
width=
{
24
}
height=
{
24
}
/>
{
bagQuantity
?
(
{
bagQuantity
?
(
<
Box
className=
{
styles
.
bagQuantity
}
>
{
bagQuantity
>
99
?
<
HundredsOverflowIcon
/>
:
bagQuantity
}
</
Box
>
<
Box
className=
{
styles
.
bagQuantity
}
>
{
bagQuantity
>
99
?
<
HundredsOverflowIcon
/>
:
bagQuantity
}
</
Box
>
)
:
null
}
)
:
null
}
...
...
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