6.19.2: Фикс кнопки сохранения в приоритетах
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m18s

This commit is contained in:
poignatov
2026-03-17 10:29:52 +03:00
parent caa8ac6ebb
commit 2104fea5e2
4 changed files with 8 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "play-life-web",
"version": "6.19.1",
"version": "6.19.2",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1167,8 +1167,6 @@ function AppContent() {
let paddingClasses = ''
if (tabName === 'current' || tabName === 'tasks' || tabName === 'wishlist' || tabName === 'profile') {
paddingClasses = 'pb-20'
} else if (tabName === 'priorities') {
paddingClasses = 'pb-20'
} else if (tabName === 'words' || tabName === 'dictionaries' || tabName === 'shopping') {
paddingClasses = 'pb-16'
}
@@ -1184,7 +1182,10 @@ function AppContent() {
if (tabName === 'current') {
return 'max-w-7xl mx-auto p-4 md:p-6'
}
if (tabName === 'full' || tabName === 'priorities' || tabName === 'dictionaries' || tabName === 'words' || tabName === 'shopping' || tabName === 'shopping-item-history' || tabName === 'purchase') {
if (tabName === 'priorities') {
return 'max-w-2xl mx-auto px-4 h-full'
}
if (tabName === 'full' || tabName === 'dictionaries' || tabName === 'words' || tabName === 'shopping' || tabName === 'shopping-item-history' || tabName === 'purchase') {
return 'max-w-7xl mx-auto px-4 md:px-8 py-0'
}
// Fullscreen табы без отступов

View File

@@ -629,7 +629,6 @@ function ProjectPriorityManager({ allProjectsData, currentWeekData, shouldLoad,
if (onConfirmed) onConfirmed()
} catch (e) {
setToastMessage({ text: e.message || 'Ошибка сохранения', type: 'error' })
} finally {
setIsSaving(false)
}
}, [authFetch, buildAssignments, onConfirmed])
@@ -1061,7 +1060,7 @@ function ProjectPriorityManager({ allProjectsData, currentWeekData, shouldLoad,
/>
)}
<div style={{
{!(projectsLoading && !maxPriority.length && !mediumPriority.length && !lowPriority.length) && <div style={{
position: 'sticky',
bottom: 0,
left: 0,
@@ -1093,7 +1092,7 @@ function ProjectPriorityManager({ allProjectsData, currentWeekData, shouldLoad,
>
{isSaving ? 'Сохранение...' : 'Сохранить'}
</button>
</div>
</div>}
{toastMessage && (
<Toast