Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PortalMEC-React
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
Model registry
Operate
Environments
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
PortalMEC
PortalMEC-React
Commits
b9e394e6
Commit
b9e394e6
authored
4 years ago
by
lfr20
Browse files
Options
Downloads
Patches
Plain Diff
Trying to make this component responsive
parent
79160cb1
No related branches found
No related tags found
6 merge requests
!57
Merge of develop into master
,
!56
Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...
,
!39
Update admin system
,
!32
Homologa
,
!31
Fix console error
,
!28
Training materials
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Components/TopicList.js
+17
-17
17 additions, 17 deletions
src/Components/TopicList.js
with
17 additions
and
17 deletions
src/Components/TopicList.js
+
17
−
17
View file @
b9e394e6
...
...
@@ -13,23 +13,23 @@ export default function TopicList(props) {
setExpanded
(
!
expanded
);
}
return
(
return
(
<
Wrapper
>
<
Title
>
Módulos
<
/Title
>
<
Grid
container
direction
=
"
row
"
justify
=
"
space-evenly
"
alignItems
=
"
center
"
spacing
=
{
3
}
>
{
props
.
topicos
.
slice
(
0
,
(
expanded
?
-
1
:
5
)).
map
(
t
=>
{
return
(
<
TopicCard
topico_obj
=
{
t
}
colecao_id
=
{
props
.
colecao_id
}
/
>
);
})
{
props
.
topicos
.
slice
(
0
,
(
expanded
?
-
1
:
5
)).
map
((
t
,
index
)
=>
{
return
(
<
Grid
item
key
=
{
index
}
md
=
{
3
}
>
<
TopicCard
topico_obj
=
{
t
}
colecao_id
=
{
props
.
colecao_id
}
/
>
<
/Grid
>
);
})
}
<
/Grid
>
{
props
.
topicos
.
length
>
5
?
{
props
.
topicos
.
length
>
5
?
<
Grid
container
direction
=
"
column
"
justify
=
"
flex-start
"
...
...
@@ -37,32 +37,32 @@ export default function TopicList(props) {
>
<
Grid
item
>
<
Fab
size
=
"
medium
"
color
=
"
secondary
"
aria
-
label
=
"
edit
"
onClick
=
{
handleFabClick
}
>
{
expanded
?
<
ExpandLessIcon
/>
:
<
ExpandMoreIcon
/>
}
{
expanded
?
<
ExpandLessIcon
/>
:
<
ExpandMoreIcon
/>
}
<
/Fab
>
<
/Grid
>
<
Grid
item
>
<
FabText
>
{
expanded
?
"
VER MENOS
"
:
"
VER TODOS OS MÓDULOS
"
}
{
expanded
?
"
VER MENOS
"
:
"
VER TODOS OS MÓDULOS
"
}
<
/FabText
>
<
/Grid
>
<
/Grid
>
:
<
div
><
/div
>
:
<
div
><
/div
>
}
<
/Wrapper
>
);
);
}
const
FabText
=
styled
.
span
`
const
FabText
=
styled
.
span
`
color: #666;
font-weight: 900;
line-height: 2em;
`
const
Title
=
styled
.
h1
`
const
Title
=
styled
.
h1
`
font-weight: 100;
margin-left: 30px;
color: rgb(102, 102, 102);
`
const
Wrapper
=
styled
.
div
`
const
Wrapper
=
styled
.
div
`
margin-right : auto;
margin-left : auto;
margin-bottom: 30px;
...
...
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