Skip to content
Snippets Groups Projects
Commit 7e47c6a5 authored by vkovtun's avatar vkovtun
Browse files

SSDM-13579: Made icons slightly smaller in the list view.

parent 76a5684f
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
...@@ -11,6 +11,7 @@ import Paper from '@material-ui/core/Paper' ...@@ -11,6 +11,7 @@ import Paper from '@material-ui/core/Paper'
import Grid from '@src/js/components/common/grid/Grid.jsx' import Grid from '@src/js/components/common/grid/Grid.jsx'
import GridFilterOptions from '@src/js/components/common/grid/GridFilterOptions.js' import GridFilterOptions from '@src/js/components/common/grid/GridFilterOptions.js'
import AppController from '@src/js/components/AppController.js' import AppController from '@src/js/components/AppController.js'
import ItemIcon from '@src/js/components/database/data-browser/ItemIcon.jsx'
const styles = theme => ({ const styles = theme => ({
boundary: { boundary: {
...@@ -19,7 +20,10 @@ const styles = theme => ({ ...@@ -19,7 +20,10 @@ const styles = theme => ({
borderStyle: 'solid', borderStyle: 'solid',
borderColor: theme.palette.border.secondary, borderColor: theme.palette.border.secondary,
backgroundColor: theme.palette.background.paper backgroundColor: theme.palette.background.paper
} },
icon: {
fontSize: '4rem',
},
}) })
const configuration = const configuration =
...@@ -149,8 +153,8 @@ class DataBrowser extends React.Component { ...@@ -149,8 +153,8 @@ class DataBrowser extends React.Component {
name: 'name', name: 'name',
label: 'Name', label: 'Name',
sortable: true, sortable: true,
getValue: ({ row }) => row.name, getValue: ({ row }) => row,
renderValue: ({ value }) => value, renderValue: ({ value }) => <><ItemIcon file={value} classes={classes} configuration={configuration} /> {value.name}</>,
renderFilter: null renderFilter: null
}, },
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment