Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sdream-ai-fe
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
侯明涛
sdream-ai-fe
Commits
872b6809
Commit
872b6809
authored
Feb 19, 2025
by
HoMeTown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: navh5做一些优化
parent
106f7851
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
src/assets/svg/logo3.svg
+1
-1
src/layouts/Navbar/Navbar.tsx
+8
-3
No files found.
src/assets/svg/logo3.svg
View file @
872b6809
<?xml version="1.0" encoding="UTF-8"?>
<svg
width=
"3
6px"
height=
"36
px"
viewBox=
"0 0 193 192"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<svg
width=
"3
2px"
height=
"32
px"
viewBox=
"0 0 193 192"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<title>
资源 7
</title>
<defs>
<rect
id=
"path-1"
x=
"0"
y=
"0"
width=
"192"
height=
"192"
></rect>
...
...
src/layouts/Navbar/Navbar.tsx
View file @
872b6809
...
...
@@ -104,8 +104,13 @@ const NavbarBase: React.FC<NavbarProps & WithAuthProps> = ({ isHistoryVisible, c
className=
"h-full flex-shrink-0 flex flex-col items-center justify-center relative"
>
{
/* hidden */
}
<
motion
.
div
className=
{
`layoutNavBarJoyride ${styles.layoutNavBarAgent} rounded-full ${isH5NavVisible ? 'h-[55px] bg-white/70 shadow-md' : 'h-[380px]'} w-[54px] overflow-hidden py-[8px] sm:w-[64px] sm:bg-white gap-[24px] sm:h-auto sm:rounded-3xl sm:flex sm:py-[24px] sm:px-[8px]`
}
>
<
NavBarItem
isHistoryVisible=
{
isHistoryVisible
}
onClick=
{
handleClick
}
icon=
{
Logo
}
label=
""
key=
"logo"
type=
{
isMobile
()
?
'logo3'
:
'logo'
}
/>
<
motion
.
div
className=
{
`layoutNavBarJoyride ${styles.layoutNavBarAgent} rounded-full ${isH5NavVisible ? 'h-[50px] bg-white/70 shadow-md' : 'h-[380px]'} w-[50px] overflow-hidden py-[8px] sm:w-[64px] sm:bg-white gap-[24px] sm:h-auto sm:rounded-3xl sm:flex sm:py-[24px] sm:px-[8px]`
}
>
<
div
className=
"hidden sm:block"
>
<
NavBarItem
isHistoryVisible=
{
isHistoryVisible
}
onClick=
{
handleClick
}
icon=
{
Logo
}
label=
""
key=
"logo"
type=
"logo"
/>
</
div
>
<
div
className=
"block sm:hidden"
>
<
NavBarItem
isHistoryVisible=
{
isHistoryVisible
}
onClick=
{
handleClick
}
icon=
{
Logo
}
label=
""
key=
"logo"
type=
"logo3"
/>
</
div
>
{
NAV_BAR_ITEMS
.
map
((
item
)
=>
{
return
(
...
...
@@ -114,7 +119,7 @@ const NavbarBase: React.FC<NavbarProps & WithAuthProps> = ({ isHistoryVisible, c
})
}
<
User
onLogout=
{
handleLogout
}
/>
</
motion
.
div
>
<
div
onClick=
{
toggleNavBarVisible
}
className=
{
`${styles.sidebarAction} ${navBarVisibleLocal === '0' ? styles.open : ''}`
}
></
div
>
<
div
onClick=
{
toggleNavBarVisible
}
className=
{
`${styles.sidebarAction} ${navBarVisibleLocal === '0' ? styles.open : ''}
hidden sm:block
`
}
></
div
>
</
motion
.
nav
>
{
/* <JoyrideStep /> */
}
</>
...
...
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