Skip to content

Commit

Permalink
fix(SILVA-563): fixing recent openings (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulushcgcj authored Nov 9, 2024
1 parent 59a2ec8 commit c73757b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 2 additions & 4 deletions frontend/src/components/OpeningScreenDataTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,21 +127,19 @@ const OpeningScreenDataTable: React.FC<IOpeningScreenDataTable> = ({
<TableToolbarContent className="table-toolbar">
<TableToolbarSearch
tabIndex={batchActionProps.shouldShowBatchActions ? -1 : 0}
//onChange={(e: React.ChangeEvent<HTMLInputElement>) => handleSearchChange(e)}
onKeyDown={(e: any) => handleSearchChange(e)}
placeholder="Filter by opening ID, File ID, timber mark, cut block, status..."
persistent
disabled={rows.length === 0}
/>
<TableToolbarMenu iconDescription="More" tooltipposition="bottom" renderIcon={Icons.OverflowMenuVertical} tabIndex={batchActionProps.shouldShowBatchActions ? -1 : 0} className="d-block d-sm-none">
<TableToolbarAction onClick={() => console.log('Download Click')} disabled={selectedRows.length === 0}>
<TableToolbarAction onClick={() =>{}} disabled={selectedRows.length === 0}>
Print
</TableToolbarAction>
<TableToolbarAction
onClick={() => {
batchActionClick(selectedRows);
batchActionProps.onCancel();
console.log('Clicked print')
batchActionProps.onCancel();
}}
disabled={selectedRows.length === 0}
>
Expand Down
8 changes: 6 additions & 2 deletions frontend/src/components/OpeningScreenDataTable/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@
}

.table-toolbar{
background-color: var(--#{vars.$bcgov-prefix}-layer-02);

background-color: var(--#{vars.$bcgov-prefix}-layer-02);
}

.#{vars.$bcgov-prefix}--search-input:disabled::placeholder {
color: var(--#{vars.$bcgov-prefix}-text-disabled) !important;
}


@media only screen and (max-width: 672px) {
.#{vars.$bcgov-prefix}--data-table-content {
width: 100%;
Expand Down

0 comments on commit c73757b

Please sign in to comment.