Compare commits

..

No commits in common. "1736e787a66c0476771f0205fbb103d9f8b29098" and "10f975d98fde890365c18c659be64b5e3ba66105" have entirely different histories.

4 changed files with 3 additions and 25 deletions

View File

@ -194,7 +194,7 @@ const SettingPanel = ({
</IconButton>
</Tooltip>
{/* проверяем на 4 форму */}
{formType === FORM_TYPE_OPTIONS[2] && (
{formType === FORM_TYPE_OPTIONS[3] && (
<>
<Tooltip title='Добавить программу'>
<IconButton onClick={onAddProgram} variant='outlined' sx={controlSx}>

View File

@ -13,7 +13,7 @@ import Modal from './Modal/Modal';
import { CheckBoxCheckSvg, CheckBoxUncheckSvg, DateIcon, UserIcon } from './icons/icons';
const TaskCard = styled.div`
width: ${({ $fluidWidth }) => ($fluidWidth ? 'calc((100% - 2.25rem) / 4)' : '26.8rem')};
width: 26.8rem;
min-height: 10rem;
display: flex;
padding: 1rem;
@ -32,18 +32,6 @@ const TaskCard = styled.div`
cursor: pointer;
position: relative;
@media (max-width: 1200px) {
width: ${({ $fluidWidth }) => ($fluidWidth ? 'calc((100% - 1.5rem) / 3)' : '26.8rem')};
}
@media (max-width: 900px) {
width: ${({ $fluidWidth }) => ($fluidWidth ? 'calc((100% - 0.75rem) / 2)' : '26.8rem')};
}
@media (max-width: 600px) {
width: ${({ $fluidWidth }) => ($fluidWidth ? '100%' : '26.8rem')};
}
&:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
@ -85,7 +73,6 @@ const TaskTitle = styled.div`
export const TaskCardComponent = ({
taskForm,
isForm = false,
fluidWidth = false,
exportMode = false,
isLoadingFile = false,
onAddForExport,
@ -171,7 +158,6 @@ export const TaskCardComponent = ({
return (
<>
<TaskCard
$fluidWidth={fluidWidth}
onClick={(event) => {
if (exportMode) {
handleCheckboxClick(event);

View File

@ -178,13 +178,6 @@ const SspDataTable = ({
enableRowActions={true}
renderRowActions={renderRowActions}
positionActionsColumn='last'
tableOptions={{
displayColumnDefOptions: {
'mrt-row-actions': {
header: 'Действия',
},
},
}}
initialState={initialState}
enableSorting={false}
enableColumnFilters={false}

View File

@ -223,12 +223,11 @@ export default function TasksPage() {
totalCount={totalCount}
page={page}
limit={limit}
maxHeight='none'
onPageChange={handlePageChange}
onLimitChange={handleLimitChange}
entityName='задач'
emptyMessage='Задачи не найдены'
renderItem={(task, exportProps) => <TaskCardComponent key={task.id} taskForm={task} fluidWidth {...exportProps} />}
renderItem={(task, exportProps) => <TaskCardComponent key={task.id} taskForm={task} {...exportProps} />}
getItemId={(task) => task.id}
getItemTitle={(task) =>
task.title ||