Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nos Hs2023
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
Container 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Språksamlingane
stadnamn
Nos Hs2023
Commits
6a77582e
Commit
6a77582e
authored
5 years ago
by
esikkala
Browse files
Options
Downloads
Patches
Plain Diff
Move pagination outside table container
parent
23759201
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/client/components/facet_results/ResultTable.js
+34
-28
34 additions, 28 deletions
src/client/components/facet_results/ResultTable.js
with
34 additions
and
28 deletions
src/client/components/facet_results/ResultTable.js
+
34
−
28
View file @
6a77582e
...
...
@@ -23,7 +23,7 @@ const styles = theme => ({
width
:
'
100%
'
,
height
:
'
auto
'
,
[
theme
.
breakpoints
.
up
(
'
md
'
)]:
{
height
:
'
calc(100% -
73
px)
'
height
:
'
calc(100% -
130
px)
'
},
backgroundColor
:
theme
.
palette
.
background
.
paper
,
borderTop
:
'
1px solid rgba(224, 224, 224, 1);
'
...
...
@@ -35,7 +35,10 @@ const styles = theme => ({
backgroundColor
:
'
#fff
'
,
display
:
'
flex
'
,
justifyContent
:
'
flex-start
'
,
borderBottom
:
'
1px solid rgba(224, 224, 224, 1);
'
,
borderTop
:
'
1px solid rgba(224, 224, 224, 1);
'
,
},
paginationCaption
:
{
minWidth
:
108
},
progressContainer
:
{
width
:
'
100%
'
,
...
...
@@ -198,11 +201,12 @@ class ResultTable extends React.Component {
const
{
classes
}
=
this
.
props
;
const
{
resultCount
,
paginatedResults
,
page
,
pagesize
,
sortBy
,
sortDirection
,
fetching
}
=
this
.
props
.
data
;
return
(
<
div
className
=
{
classes
.
tableContainer
}
>
<
React
.
Fragment
>
<
TablePagination
component
=
'
div
'
classes
=
{{
root
:
classes
.
paginationRoot
root
:
classes
.
paginationRoot
,
caption
:
classes
.
paginationCaption
,
}}
count
=
{
resultCount
}
rowsPerPage
=
{
pagesize
}
...
...
@@ -212,30 +216,32 @@ class ResultTable extends React.Component {
onChangeRowsPerPage
=
{
this
.
handleOnchangeRowsPerPage
}
ActionsComponent
=
{
ResultTablePaginationActions
}
/
>
{
fetching
?
<
div
className
=
{
classes
.
progressContainer
}
>
<
CircularProgress
style
=
{{
color
:
purple
[
500
]
}}
thickness
=
{
5
}
/
>
<
/div
>
:
<
Table
className
=
{
classes
.
table
}
>
<
ResultTableHead
columns
=
{
this
.
props
.
data
.
tableColumns
}
onChangePage
=
{
this
.
handleChangePage
}
onSortBy
=
{
this
.
handleSortBy
}
onChangeRowsPerPage
=
{
this
.
handleOnChangeRowsPerPage
}
resultCount
=
{
resultCount
}
page
=
{
page
}
pagesize
=
{
pagesize
}
sortBy
=
{
sortBy
}
sortDirection
=
{
sortDirection
}
routeProps
=
{
this
.
props
.
routeProps
}
/
>
<
TableBody
>
{
paginatedResults
.
map
(
row
=>
this
.
rowRenderer
(
row
))}
<
/TableBody
>
<
/Table
>
}
<
/div
>
<
div
className
=
{
classes
.
tableContainer
}
>
{
fetching
?
<
div
className
=
{
classes
.
progressContainer
}
>
<
CircularProgress
style
=
{{
color
:
purple
[
500
]
}}
thickness
=
{
5
}
/
>
<
/div
>
:
<
Table
className
=
{
classes
.
table
}
>
<
ResultTableHead
columns
=
{
this
.
props
.
data
.
tableColumns
}
onChangePage
=
{
this
.
handleChangePage
}
onSortBy
=
{
this
.
handleSortBy
}
onChangeRowsPerPage
=
{
this
.
handleOnChangeRowsPerPage
}
resultCount
=
{
resultCount
}
page
=
{
page
}
pagesize
=
{
pagesize
}
sortBy
=
{
sortBy
}
sortDirection
=
{
sortDirection
}
routeProps
=
{
this
.
props
.
routeProps
}
/
>
<
TableBody
>
{
paginatedResults
.
map
(
row
=>
this
.
rowRenderer
(
row
))}
<
/TableBody
>
<
/Table
>
}
<
/div
>
<
/React.Fragment
>
);
}
}
...
...
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