From a19f072118f034b88c0ec1799d8fbe26038a3aa5 Mon Sep 17 00:00:00 2001
From: esikkala <esko.ikkala@aalto.fi>
Date: Wed, 30 Oct 2019 17:43:07 +0200
Subject: [PATCH] Fix full text results layout

---
 .../facet_results/MaterialTableFullTextResults.js        | 9 ++++++---
 src/client/components/perspectives/mmm/All.js            | 3 ++-
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/client/components/facet_results/MaterialTableFullTextResults.js b/src/client/components/facet_results/MaterialTableFullTextResults.js
index 9a43fd61..d6f3f26f 100644
--- a/src/client/components/facet_results/MaterialTableFullTextResults.js
+++ b/src/client/components/facet_results/MaterialTableFullTextResults.js
@@ -111,9 +111,12 @@ class MaterialTableFullTextResults extends React.Component {
               PreviousPage: ChevronLeftIcon
             }}
             options={{
-              maxBodyHeight: '100%',
-              pageSize: 15,
-              pageSizeOptions: [10, 15, 20, 25]
+              pageSize: 5,
+              pageSizeOptions: [5, 10, 15, 20, 25]
+            }}
+            style={{
+              height: '100%',
+              overflow: 'auto'
             }}
           />
         </div>
diff --git a/src/client/components/perspectives/mmm/All.js b/src/client/components/perspectives/mmm/All.js
index 2eacbb22..8fbbc7d6 100644
--- a/src/client/components/perspectives/mmm/All.js
+++ b/src/client/components/perspectives/mmm/All.js
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
 import { Route, Redirect } from 'react-router-dom';
 import PerspectiveTabs from '../../main_layout/PerspectiveTabs';
 import MaterialTableFullTextResults from '../../facet_results/MaterialTableFullTextResults';
+import CalendarViewDayIcon from '@material-ui/icons/CalendarViewDay';
 
 const All = props => {
   const perspectiveUrl = '/all';
@@ -13,7 +14,7 @@ const All = props => {
         tabs={[{
           id: 'table',
           label: 'table',
-          icon: 'CalendarViewDay',
+          icon: <CalendarViewDayIcon />,
           value: 0,
         }]}
       />
-- 
GitLab