diff --git a/ui/src/components/SampleGrid/SampleGridTable.css b/ui/src/components/SampleGrid/SampleGridTable.css index f6328ad8f..d4ce27181 100644 --- a/ui/src/components/SampleGrid/SampleGridTable.css +++ b/ui/src/components/SampleGrid/SampleGridTable.css @@ -21,7 +21,6 @@ .sample-items-collapsible { margin-bottom: 1%; - /* width:fit-content; */ width: 100%; margin-right: auto; } @@ -49,7 +48,6 @@ align-items: center; margin-bottom: 0px; background: #e5e8eb6b; - /* width: fit-content; */ width: 100%; } @@ -112,7 +110,17 @@ .samples-grid-table-item-button { background: Transparent; - opacity: 1; +} + +.span-container-code { + float: left; + padding-left: 10px; + margin-top: 6px; + max-width: 200px; + display: inline-flex; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .pick-puck-checkbox-button { diff --git a/ui/src/components/SampleGrid/SampleGridTableItem.jsx b/ui/src/components/SampleGrid/SampleGridTableItem.jsx index 5f392465f..ca5d14ecb 100644 --- a/ui/src/components/SampleGrid/SampleGridTableItem.jsx +++ b/ui/src/components/SampleGrid/SampleGridTableItem.jsx @@ -51,7 +51,7 @@ export class SampleGridTableItem extends React.Component { } > - + + + ); } @@ -872,19 +886,11 @@ class SampleGridTableContainer extends React.Component { Puck {idxth + 1} - {puck.id !== '' ? ( -
- Code : {puck.id} -
- ) : null}
....; - if (id === 'samples-grid-table-context-menu') { - menu = ( - <> - {this.sampleContextMenu()} - {this.taskContextMenuItems()} - - ); - } else if (id === 'samples-grid-table-context-menu-mounted') { - menu = ( - <> - {this.sampleContextMenuMounted()} - {this.taskContextMenuItems()} - - ); - } else if (id === 'samples-grid-table-context-menu-cell') { - menu = ( - <> - Cell Actions - {this.taskContextMenuItems()} - - ); - } else if (id === 'samples-grid-table-context-menu-puck') { - menu = ( - <> - Puck Actions - {this.taskContextMenuItems()} - - ); + switch (id) { + case 'samples-grid-table-context-menu': { + menu = ( + <> + {this.sampleContextMenu()} + {this.taskContextMenuItems()} + + ); + + break; + } + case 'samples-grid-table-context-menu-mounted': { + menu = ( + <> + {this.sampleContextMenuMounted()} + {this.taskContextMenuItems()} + + ); + + break; + } + case 'samples-grid-table-context-menu-cell': { + menu = ( + <> + Cell Actions + {this.taskContextMenuItems()} + + ); + + break; + } + case 'samples-grid-table-context-menu-puck': { + menu = ( + <> + Puck Actions + {this.taskContextMenuItems()} + + ); + + break; + } + // No default } return menu;