Исправление ошибки добавления проекта
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 46s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 46s
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "play-life-web",
|
||||
"version": "3.10.5",
|
||||
"version": "3.10.6",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -37,16 +37,6 @@ function CurrentWeek({ onProjectClick, data, loading, error, onRetry, allProject
|
||||
|
||||
const hasProgressData = overallProgress !== null
|
||||
|
||||
// Логирование для отладки
|
||||
console.log('CurrentWeek data:', {
|
||||
data,
|
||||
dataTotal: data?.total,
|
||||
dataProgress: data?.progress,
|
||||
dataPercentage: data?.percentage,
|
||||
overallProgress,
|
||||
hasProgressData
|
||||
})
|
||||
|
||||
// Получаем отсортированный список всех проектов для синхронизации цветов
|
||||
const allProjects = getAllProjectsSorted(allProjectsData, projectsData || [])
|
||||
|
||||
|
||||
@@ -108,8 +108,8 @@ function AddProjectScreen({ onClose, onSuccess, onError }) {
|
||||
className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent"
|
||||
autoFocus
|
||||
/>
|
||||
{error && (
|
||||
<div className="mt-2 text-sm text-red-600">{error}</div>
|
||||
{validationError && (
|
||||
<div className="mt-2 text-sm text-red-600">{validationError}</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
@@ -873,7 +873,7 @@ function ProjectPriorityManager({ allProjectsData, currentWeekData, shouldLoad,
|
||||
const activeProject = allItems.find(item => item.name === activeId)
|
||||
|
||||
return (
|
||||
<div className="max-w-2xl mx-auto flex flex-col max-h-[calc(100vh-11rem)] pt-[60px]">
|
||||
<div className="max-w-2xl mx-auto flex flex-col h-full">
|
||||
{onNavigate && (
|
||||
<button
|
||||
onClick={() => onNavigate('current')}
|
||||
@@ -903,8 +903,8 @@ function ProjectPriorityManager({ allProjectsData, currentWeekData, shouldLoad,
|
||||
onDragCancel={handleDragCancel}
|
||||
>
|
||||
<div
|
||||
className="space-y-6 overflow-y-auto flex-1"
|
||||
style={{ minHeight: 0, touchAction: 'pan-y' }}
|
||||
className="space-y-6 overflow-y-auto flex-1 min-h-0 pt-[60px]"
|
||||
style={{ touchAction: 'pan-y' }}
|
||||
>
|
||||
<SortableContext items={maxPriority.map(p => p.name)} strategy={verticalListSortingStrategy}>
|
||||
<PrioritySlot
|
||||
|
||||
Reference in New Issue
Block a user