diff --git a/packages/client/public/locales/en/translation.json b/packages/client/public/locales/en/translation.json index 75b2b9f6..377d922a 100644 --- a/packages/client/public/locales/en/translation.json +++ b/packages/client/public/locales/en/translation.json @@ -45,7 +45,7 @@ "newStudy": "New Study", "studyControl": "Study Control", "entryControl": "Entry Control", - "viewTags": "Download Tags", + "viewTags": "View Tags", "datasets": "Datasets", "datasetControl": "Dataset Control", "projectAccess": "Project Access", @@ -181,4 +181,4 @@ "resetPassword": "Reset Password" } } -} \ No newline at end of file +} diff --git a/packages/client/src/components/tag/view/TagGridView.component.tsx b/packages/client/src/components/tag/view/TagGridView.component.tsx index e5e5a805..0c3e4d35 100644 --- a/packages/client/src/components/tag/view/TagGridView.component.tsx +++ b/packages/client/src/components/tag/view/TagGridView.component.tsx @@ -1,7 +1,7 @@ import { useTranslation } from 'react-i18next'; import { GetGridColDefs, TagViewTest } from '../../../types/TagColumnView'; import { Entry, Study } from '../../../graphql/graphql'; -import { GridColDef, GridRenderCellParams } from '@mui/x-data-grid'; +import { GridColDef, GridRenderCellParams, GridToolbar } from '@mui/x-data-grid'; import { DataGrid } from '@mui/x-data-grid'; import { GetTagsQuery, useRemoveTagMutation } from '../../../graphql/tag/tag'; import { freeTextTest, getTextCols } from './FreeTextGridView.component'; @@ -104,6 +104,7 @@ export const TagGridView: React.FC = ({ tags, study, refetchTa rows={tags} columns={entryColumns.concat(tagMetaColumns).concat(dataColunms).concat(tagRedoColumns)} getRowId={(row) => row._id} + slots={{ toolbar: GridToolbar }} /> ); }; diff --git a/packages/client/src/components/tag/view/VideoGridView.component.tsx b/packages/client/src/components/tag/view/VideoGridView.component.tsx index b611d491..314b5c65 100644 --- a/packages/client/src/components/tag/view/VideoGridView.component.tsx +++ b/packages/client/src/components/tag/view/VideoGridView.component.tsx @@ -53,7 +53,7 @@ export const getVideoCols: GetGridColDefs = (uischema, schema, property) => { columns.push({ field: `${property}-video-${i + 1}`, headerName: `${property}: ${i18next.t('common.video')} ${i + 1}`, - width: 300, + width: 350, renderCell: (params) => params.row.data && params.row.data[property] && ( diff --git a/packages/client/src/pages/studies/TagView.tsx b/packages/client/src/pages/studies/TagView.tsx index 56ed6f78..8c1c49a0 100644 --- a/packages/client/src/pages/studies/TagView.tsx +++ b/packages/client/src/pages/studies/TagView.tsx @@ -1,4 +1,4 @@ -import { Container, Typography } from '@mui/material'; +import { Typography } from '@mui/material'; import { useTranslation } from 'react-i18next'; import { useStudy } from '../../context/Study.context'; import { TagGridView } from '../../components/tag/view/TagGridView.component'; @@ -31,9 +31,9 @@ export const TagView: React.FC = () => { }; return ( - + <> {t('menu.viewTags')} {study && } - + ); };