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
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MECRED
Frontend-MECRED
Commits
edbc77fc
Commit
edbc77fc
authored
Jul 29, 2024
by
jsk22
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#146
: FIX general details
parent
6d5f441d
No related branches found
No related tags found
1 merge request
!145
Issue #146: FIX general details
Pipeline
#38622
passed
Jul 29, 2024
Stage: build
Changes
3
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/app/components/Header.js
+7
-5
7 additions, 5 deletions
src/app/components/Header.js
src/app/components/SearchComponent.js
+0
-16
0 additions, 16 deletions
src/app/components/SearchComponent.js
src/app/components/SideBar.js
+4
-4
4 additions, 4 deletions
src/app/components/SideBar.js
with
11 additions
and
25 deletions
src/app/components/Header.js
+
7
−
5
View file @
edbc77fc
...
...
@@ -130,13 +130,13 @@ function DefaultContent({
function
MobileSearch
({
setFilterState
,
filterState
,
handleToggleMobileSearch
})
{
return
(
<
div
className
=
"
flex w-full items-center
gap-3
"
>
<
div
className
=
"
flex w-full items-center
"
>
<
SearchComponent
setFilterState
=
{
setFilterState
}
filterState
=
{
filterState
}
/
>
<
button
type
=
"
button
"
alt
=
"
Fechar busca
"
title
=
"
Fechar busca
"
className
=
"
bg-text-color hover:
bg-text-color w-10 h-10 rounded text-white shrink-0 transition
"
className
=
{
"
bg-text-color w-10 h-10 rounded text-white shrink-0
transition
-all duration-30000 hover:bg-blue-button
"
}
onClick
=
{
handleToggleMobileSearch
}
>
<
CloseIcon
className
=
"
h-full text-3xl
"
/>
...
...
@@ -157,7 +157,9 @@ export default function Header({ setFilterState, filterState, handleOpenMenu })
const
handleToggleMobileSearch
=
()
=>
{
setTimeout
(()
=>
{
setMobileSearchOpen
((
curr
)
=>
!
curr
);
},
100
);
};
return
(
...
...
This diff is collapsed.
Click to expand it.
src/app/components/SearchComponent.js
+
0
−
16
View file @
edbc77fc
...
...
@@ -176,22 +176,6 @@ export default function SearchComponent({ setFilterState, filterState, sizeWindo
>
<
SearchIcon
className
=
"
h-full text-3xl
"
/>
<
/button
>
<
button
type
=
"
button
"
alt
=
"
Busca por voz
"
title
=
"
Busca por voz
"
className
=
"
bg-grey-button hover:bg-text-color w-10 h-10 rounded outline outline-1 outline-outlineColor text-text-color hover:text-white flex-shrink-0 transition
"
>
<
KeyboardVoiceIcon
className
=
"
h-full text-3xl
"
/>
<
/button
>
<
button
type
=
"
button
"
alt
=
"
Teclado virtual
"
title
=
"
Teclado virtual
"
className
=
"
bg-grey-button hover:bg-text-color w-10 h-10 rounded text-text-color hover:text-white flex-shrink-0 transition outline outline-1 outline-outlineColor
"
>
<
KeyboardIcon
className
=
"
h-full text-3xl
"
/>
<
/button
>
<
/div
>
{
drop
&&
(
<
div
...
...
This diff is collapsed.
Click to expand it.
src/app/components/SideBar.js
+
4
−
4
View file @
edbc77fc
...
...
@@ -144,7 +144,7 @@ export default function SideBar({ setFilterState, filterState, openMenu }) {
// id={item.id + '_open'}
href
=
{
item
.
href
===
"
/sobre
"
?
item
.
href
:
"
/busca?page=
"
+
item
.
href
}
key
=
{
index
}
className
=
{
` pr-8 cursor-pointer rounded-xl
p
l-2 pb-1 pt-1 max-w-52 mb-1
${
pathname
===
item
.
href
className
=
{
` pr-8 cursor-pointer rounded-xl
m
l-2 pb-1 pt-1 max-w-52 mb-1
${
pathname
===
item
.
href
?
"
bg-secondary text-white hover:bg-secondary-hover focus:bg-secondary-hover
"
:
"
hover:bg-main-hover focus:bg-main-hover
"
}
`
}
...
...
@@ -154,8 +154,8 @@ export default function SideBar({ setFilterState, filterState, openMenu }) {
?
"
text-white hover:bg-secondary-hover focus:bg-secondary-hover
"
:
"
hover:bg-main-hover text-gray-color focus:bg-main-hover
"
}
`
}
/>
{" "
}
{
tradutor
(
item
.
href
)}
/
>
<
span
className
=
"
ml-1
"
>
{
tradutor
(
item
.
href
)}
<
/span
>
<
/Link
>
);
})}
...
...
@@ -173,7 +173,7 @@ export default function SideBar({ setFilterState, filterState, openMenu }) {
{
subjectsAvailable
.
map
((
item
,
index
)
=>
{
return
(
<
a
className
=
{
` cursor-pointer rounded-xl
p
l-2 mb-1 p-[1px] max-w-52
${
selectedSubject
[
index
]
className
=
{
` cursor-pointer rounded-xl
m
l-2
0
mb-1 p-[1px] max-w-52
${
selectedSubject
[
index
]
?
"
bg-secondary text-main hover:bg-secondary-hover
"
:
"
hover:bg-main-hover
"
}
`
}
...
...
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