Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
final-exam
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nawasan Wisitsingkhon
final-exam
Commits
d8648b2c
Commit
d8648b2c
authored
Oct 07, 2023
by
Nawasan Wisitsingkhon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: layout for mobile & navbar icon;
parent
b3c1404a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
Navbar.js
src/components/Navbar.js
+8
-4
AdminLayout.js
src/components/layout/AdminLayout.js
+2
-2
UserLayout.js
src/components/layout/UserLayout.js
+2
-2
No files found.
src/components/Navbar.js
View file @
d8648b2c
...
...
@@ -281,7 +281,11 @@ function Navbar(props) {
>
{
MenuList
.
map
((
menu
,
idx
)
=>
(
<
span
key
=
{
idx
}
>
<
Link
onClick
=
{
handleMobileMenuClose
}
className
=
"text-black no-underline"
href
=
{
menu
.
link
}
>
<
Link
onClick
=
{
handleMobileMenuClose
}
className
=
"text-black no-underline"
href
=
{
menu
.
link
}
>
<
MenuItem
>
{
menu
.
element
}
<
p
>
{
menu
.
label
}
<
/p
>
...
...
@@ -304,16 +308,16 @@ function Navbar(props) {
variant
=
"h6"
noWrap
component
=
"div"
sx
=
{{
display
:
{
xs
:
"none"
,
md
:
"block"
}
}}
sx
=
{{
display
:
{
md
:
"block"
}
}}
>
<
Link
className
=
"bg-black
p-4 rounded-lg inline-block
py-2"
className
=
"bg-black
rounded-lg inline-block px-2 sm:p-4 sm:
py-2"
href
=
{
"/"
}
>
OpenShop
<
/Link
>
<
/Typography
>
<
Search
>
<
Search
sx
=
{{
width
:
150
}}
>
<
SearchIconWrapper
>
<
SearchIcon
/>
<
/SearchIconWrapper
>
...
...
src/components/layout/AdminLayout.js
View file @
d8648b2c
...
...
@@ -35,8 +35,8 @@ export default function AdminLayout({ children }) {
fetch
:
fetchAdminOrder
,
}}
>
<
Box
sx
=
{{
display
:
"flex"
}}
>
<
AdminNavbar
/
>
<
AdminNavbar
/
>
<
Box
>
{
/* <Sidebar /> */
}
<
Box
component
=
"main"
...
...
src/components/layout/UserLayout.js
View file @
d8648b2c
...
...
@@ -7,8 +7,8 @@ import Footer from "../Footer";
export
default
function
UserLayout
({
children
})
{
return
(
<>
<
Box
sx
=
{{
display
:
"flex"
}}
>
<
Navbar
/
>
<
Navbar
/
>
<
Box
>
{
/* <Sidebar /> */
}
<
Box
component
=
"main"
...
...
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