Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Frontend-MECRED
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MECRED
Frontend-MECRED
Commits
2d8d604f
Commit
2d8d604f
authored
1 month ago
by
Guilherme Eduardo
Committed by
jsk22
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#285
: UPDATE main sidebar responsive
parent
6efd0df5
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/components/SideBar.js
+6
-5
6 additions, 5 deletions
src/app/components/SideBar.js
src/app/perfil/[id]/components/UserCard.js
+1
-1
1 addition, 1 deletion
src/app/perfil/[id]/components/UserCard.js
with
7 additions
and
6 deletions
src/app/components/SideBar.js
+
6
−
5
View file @
2d8d604f
...
@@ -150,7 +150,7 @@ export default function SideBar({ setFilterState, filterState }) {
...
@@ -150,7 +150,7 @@ export default function SideBar({ setFilterState, filterState }) {
<
NeedLoginModal
open
=
{
needLoginOpen
}
setOpen
=
{
setNeedLoginOpen
}
/
>
<
NeedLoginModal
open
=
{
needLoginOpen
}
setOpen
=
{
setNeedLoginOpen
}
/
>
<
div
className
=
"
max-md:hidden min-h-0 overflow-y-auto flex flex-col text-darkGray-HC-white-underline font-light
"
>
<
div
className
=
"
max-md:hidden min-h-0 overflow-y-auto flex flex-col text-darkGray-HC-white-underline font-light
"
>
<
div
className
=
"
flex flex-col justify-start items-center gap-
3
w-full mb-5
"
>
<
div
className
=
"
flex flex-col justify-start items-center gap-
2
w-full mb-5
"
>
{
acessoRapido
{
acessoRapido
.
filter
(
item
=>
isLoggedIn
()
||
(
item
.
title
!==
"
Sair
"
&&
item
.
href
!==
"
/perfil
"
))
.
filter
(
item
=>
isLoggedIn
()
||
(
item
.
title
!==
"
Sair
"
&&
item
.
href
!==
"
/perfil
"
))
.
map
((
item
,
index
)
=>
{
.
map
((
item
,
index
)
=>
{
...
@@ -161,12 +161,13 @@ export default function SideBar({ setFilterState, filterState }) {
...
@@ -161,12 +161,13 @@ export default function SideBar({ setFilterState, filterState }) {
key
=
{
index
}
key
=
{
index
}
alt
=
{
item
.
title
}
alt
=
{
item
.
title
}
title
=
{
item
.
title
}
title
=
{
item
.
title
}
className
=
{
`aspect-square cursor-pointer hover:bg-lightGray-HC-white hover:text-darkGray-HC-dark-underline focus:bg-lightGray-HC-white text-center rounded-lg pt-2 w-[
88
px]
className
=
{
`aspect-square cursor-pointer hover:bg-lightGray-HC-white hover:text-darkGray-HC-dark-underline focus:bg-lightGray-HC-white text-center rounded-lg pt-2 w-[
60%] h-[70
px]
${(
page
===
item
.
href
)
||
(
pathname
.
startsWith
(
item
.
href
))
?
"
bg-lightGray-HC-white text-darkGray-HC-dark-underline font-bold
"
:
""
}
${(
page
===
item
.
href
)
||
(
pathname
.
startsWith
(
item
.
href
))
?
"
bg-lightGray-HC-white text-darkGray-HC-dark-underline font-bold
"
:
""
}
`
}
`
}
>
>
<
item
.
icon
<
item
.
icon
className
=
{
`text-3xl rounded-xl cursor-pointer
${
page
===
item
.
href
?
"
text-darkGray-HC-dark-underline font-bold
"
:
""
}
`
}
className
=
{
`rounded-xl cursor-pointer
${
page
===
item
.
href
?
"
text-darkGray-HC-dark-underline font-bold
"
:
""
}
`
}
sx
=
{{
fontSize
:
'
1.6em
'
}}
/
>
/
>
<
div
className
=
{
`py-1 text-base
${
page
===
item
.
href
?
"
text-darkGray-HC-dark-underline font-bold
"
:
""
}
`
}
>
<
div
className
=
{
`py-1 text-base
${
page
===
item
.
href
?
"
text-darkGray-HC-dark-underline font-bold
"
:
""
}
`
}
>
{
item
.
title
}
{
item
.
title
}
...
...
This diff is collapsed.
Click to expand it.
src/app/perfil/[id]/components/UserCard.js
+
1
−
1
View file @
2d8d604f
...
@@ -290,7 +290,7 @@ export default function UserCard({ profileData, idLogin, achievements, progresse
...
@@ -290,7 +290,7 @@ export default function UserCard({ profileData, idLogin, achievements, progresse
alt
=
"
verificado
"
alt
=
"
verificado
"
className
=
'
flex aspect-square mr-4 max-lg:mx-4 w-[28px] h-[28px] rounded-full
'
className
=
'
flex aspect-square mr-4 max-lg:mx-4 w-[28px] h-[28px] rounded-full
'
/>
/>
<
span
>
V
erificado
<
/span
>
<
span
>
Usuário
v
erificado
<
/span
>
<
/div
>
<
/div
>
}
}
<
/div
>
<
/div
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment