Skip to content

Commit

Permalink
fix(DesignSystem): vertically allign Table cells content to the middle
Browse files Browse the repository at this point in the history
  • Loading branch information
MellyGray committed Sep 19, 2023
1 parent 3453075 commit 0f3a335
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ $form-label-font-weight: $dv-font-weight-bold;


// Table
$table-cell-vertical-align: middle;

@import "bootstrap/scss/tables";


Expand Down Expand Up @@ -99,4 +101,8 @@ $navbar-brand-font-size: $dv-brand-font-size;

.navbar-collapse {
justify-content: end;
}
}

th {
vertical-align: middle;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Search } from 'react-bootstrap-icons'
import { FileCriteria } from '../../../../files/domain/models/FileCriteria'
import { ChangeEvent, useState, KeyboardEvent, MouseEvent } from 'react'
import { useTranslation } from 'react-i18next'
import SubmitEvent = JQuery.SubmitEvent

interface FileCriteriaSearchTextProps {
criteria: FileCriteria
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const createColumnsDefinition = (
)
},
{
header: ({ table }) => <FileInfoHeader paginationInfo={paginationInfo} />,
header: () => <FileInfoHeader paginationInfo={paginationInfo} />,
accessorKey: 'info',
cell: (props) => <FileInfoCell file={props.row.original} />
},
Expand Down

0 comments on commit 0f3a335

Please sign in to comment.