[ARVADOS-WORKBENCH2] created: 1.3.1-461-gd5f7c3ce
Git user
git at public.curoverse.com
Thu May 16 10:54:48 UTC 2019
at d5f7c3ce3d66813587e856861f23fa35d08769f9 (commit)
commit d5f7c3ce3d66813587e856861f23fa35d08769f9
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date: Thu May 16 12:54:32 2019 +0200
smaller-width-for-icons-on-workflow-panel
Feature #15166
Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
diff --git a/src/components/data-table/data-table.tsx b/src/components/data-table/data-table.tsx
index e1309793..84137588 100644
--- a/src/components/data-table/data-table.tsx
+++ b/src/components/data-table/data-table.tsx
@@ -35,7 +35,7 @@ export interface DataTableDataProps<T> {
currentRoute?: string;
}
-type CssRules = "tableBody" | "root" | "content" | "noItemsInfo" | 'tableCell' | 'arrow' | 'arrowButton';
+type CssRules = "tableBody" | "root" | "content" | "noItemsInfo" | 'tableCell' | 'arrow' | 'arrowButton' | 'tableCellWorkflows';
const styles: StyleRulesCallback<CssRules> = (theme: Theme) => ({
root: {
@@ -56,6 +56,17 @@ const styles: StyleRulesCallback<CssRules> = (theme: Theme) => ({
tableCell: {
wordWrap: 'break-word'
},
+ tableCellWorkflows: {
+ '&:nth-last-child(2)': {
+ padding: '0px',
+ maxWidth: '48px'
+ },
+ '&:last-child': {
+ padding: '0px',
+ paddingRight: '24px',
+ width: '48px'
+ }
+ },
arrow: {
margin: 0
},
@@ -125,14 +136,14 @@ export const DataTable = withStyles(styles)(
</TableCell>;
}
- ArrowIcon = ({className, ...props}: SvgIconProps) => (
+ ArrowIcon = ({ className, ...props }: SvgIconProps) => (
<IconButton component='span' className={this.props.classes.arrowButton} tabIndex={-1}>
- <ArrowDownwardIcon {...props} className={classnames(className, this.props.classes.arrow)}/>
+ <ArrowDownwardIcon {...props} className={classnames(className, this.props.classes.arrow)} />
</IconButton>
)
renderBodyRow = (item: any, index: number) => {
- const { onRowClick, onRowDoubleClick, extractKey, classes, currentItemUuid } = this.props;
+ const { onRowClick, onRowDoubleClick, extractKey, classes, currentItemUuid, currentRoute } = this.props;
return <TableRow
hover
key={extractKey ? extractKey(item) : index}
@@ -141,7 +152,7 @@ export const DataTable = withStyles(styles)(
onDoubleClick={event => onRowDoubleClick && onRowDoubleClick(event, item)}
selected={item === currentItemUuid}>
{this.mapVisibleColumns((column, index) => (
- <TableCell key={column.key || index} className={classes.tableCell}>
+ <TableCell key={column.key || index} className={currentRoute === '/workflows' ? classes.tableCellWorkflows : classes.tableCell}>
{column.render(item)}
</TableCell>
))}
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list