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
8b1c556a
Commit
8b1c556a
authored
Dec 02, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes
parent
78e8800a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
Home.pw.tsx_dark-color-mode_default-view---default-desktop-xl-mobile-dark-mode-1.png
..._default-view---default-desktop-xl-mobile-dark-mode-1.png
+0
-0
NavigationDesktop.tsx
ui/snippets/navigation/NavigationDesktop.tsx
+1
-1
NetworkLogo.tsx
ui/snippets/networkMenu/NetworkLogo.tsx
+6
-4
NetworkMenu.tsx
ui/snippets/networkMenu/NetworkMenu.tsx
+1
-1
No files found.
ui/pages/__screenshots__/Home.pw.tsx_dark-color-mode_default-view---default-desktop-xl-mobile-dark-mode-1.png
View replaced file @
78e8800a
View file @
8b1c556a
300 KB
|
W:
|
H:
300 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/snippets/navigation/NavigationDesktop.tsx
View file @
8b1c556a
...
@@ -67,7 +67,7 @@ const NavigationDesktop = () => {
...
@@ -67,7 +67,7 @@ const NavigationDesktop = () => {
alignItems=
"center"
alignItems=
"center"
flexDirection=
"row"
flexDirection=
"row"
w=
"100%"
w=
"100%"
px=
{
isCollapsed
?
'
15px
'
:
3
}
px=
{
{
lg
:
isExpanded
?
3
:
'
15px
'
,
xl
:
isCollapsed
?
'
15px
'
:
3
}
}
h=
{
10
}
h=
{
10
}
{
...
getDefaultTransitionProps
({
transitionProperty
:
'
padding
'
})
}
{
...
getDefaultTransitionProps
({
transitionProperty
:
'
padding
'
})
}
>
>
...
...
ui/snippets/networkMenu/NetworkLogo.tsx
View file @
8b1c556a
import
{
Icon
,
Box
,
Image
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
{
Icon
,
Box
,
Image
,
useColorModeValue
,
useBreakpointValue
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
appConfig
from
'
configs/app/config
'
;
...
@@ -18,9 +18,11 @@ const NetworkLogo = ({ isCollapsed, onClick }: Props) => {
...
@@ -18,9 +18,11 @@ const NetworkLogo = ({ isCollapsed, onClick }: Props) => {
const
href
=
link
(
'
network_index
'
);
const
href
=
link
(
'
network_index
'
);
const
style
=
useColorModeValue
({},
{
filter
:
'
brightness(0) invert(1)
'
});
const
style
=
useColorModeValue
({},
{
filter
:
'
brightness(0) invert(1)
'
});
const
isLg
=
useBreakpointValue
({
base
:
false
,
lg
:
true
,
xl
:
false
},
{
ssr
:
true
});
const
logoEl
=
(()
=>
{
const
logoEl
=
(()
=>
{
if
(
isCollapsed
)
{
const
showSmallLogo
=
isCollapsed
||
(
isCollapsed
!==
false
&&
isLg
);
if
(
showSmallLogo
)
{
if
(
appConfig
.
network
.
smallLogo
)
{
if
(
appConfig
.
network
.
smallLogo
)
{
return
(
return
(
<
Image
<
Image
...
@@ -74,8 +76,8 @@ const NetworkLogo = ({ isCollapsed, onClick }: Props) => {
...
@@ -74,8 +76,8 @@ const NetworkLogo = ({ isCollapsed, onClick }: Props) => {
<
Box
<
Box
as=
"a"
as=
"a"
href=
{
href
}
href=
{
href
}
width=
{
{
base
:
'
auto
'
,
lg
:
isCollapsed
===
false
?
'
113px
'
:
'
30px
'
}
}
width=
{
{
base
:
'
auto
'
,
lg
:
isCollapsed
===
false
?
'
113px
'
:
'
30px
'
,
xl
:
isCollapsed
?
'
30px
'
:
'
113px
'
}
}
height=
{
isCollapsed
?
'
30px
'
:
'
20px
'
}
height=
{
{
base
:
'
20px
'
,
lg
:
isCollapsed
===
false
?
'
20px
'
:
'
30px
'
,
xl
:
isCollapsed
?
'
30px
'
:
'
20px
'
}
}
display=
"inline-flex"
display=
"inline-flex"
overflow=
"hidden"
overflow=
"hidden"
onClick=
{
onClick
}
onClick=
{
onClick
}
...
...
ui/snippets/networkMenu/NetworkMenu.tsx
View file @
8b1c556a
...
@@ -16,7 +16,7 @@ const NetworkMenu = ({ isCollapsed }: Props) => {
...
@@ -16,7 +16,7 @@ const NetworkMenu = ({ isCollapsed }: Props) => {
<
Box
<
Box
marginLeft=
"auto"
marginLeft=
"auto"
overflow=
"hidden"
overflow=
"hidden"
width=
{
isCollapsed
?
'
0px
'
:
'
auto
'
}
width=
{
{
base
:
'
auto
'
,
lg
:
isCollapsed
===
false
?
'
auto
'
:
'
0px
'
,
xl
:
isCollapsed
?
'
0px
'
:
'
auto
'
}
}
>
>
<
NetworkMenuButton
isActive=
{
isOpen
}
/>
<
NetworkMenuButton
isActive=
{
isOpen
}
/>
</
Box
>
</
Box
>
...
...
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