6.19.0: Унификация кнопок сохранения в формах
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m18s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
poignatov
2026-03-17 10:08:23 +03:00
parent 171befdf05
commit 49f67ec36d
8 changed files with 108 additions and 42 deletions

View File

@@ -1061,19 +1061,38 @@ function ProjectPriorityManager({ allProjectsData, currentWeekData, shouldLoad,
/>
)}
<div className={onClose
? 'sticky bottom-0 pt-2 pb-4 mt-2'
: 'fixed bottom-0 left-0 right-0 bg-gray-100 px-4 pt-2 pb-4'
}>
<div className="max-w-2xl mx-auto">
<button
onClick={handleSave}
disabled={isSaving}
className="w-full py-3 bg-indigo-600 hover:bg-indigo-700 disabled:bg-indigo-400 text-white font-semibold rounded-lg shadow transition-all"
>
{isSaving ? 'Сохранение...' : 'Сохранить'}
</button>
</div>
<div style={{
position: 'sticky',
bottom: 0,
left: 0,
right: 0,
padding: '0.75rem 0',
paddingBottom: 'max(0.75rem, env(safe-area-inset-bottom))',
background: 'linear-gradient(to top, white 60%, rgba(255,255,255,0))',
display: 'flex',
justifyContent: 'center',
}}>
<button
onClick={handleSave}
disabled={isSaving}
style={{
width: '100%',
maxWidth: '42rem',
padding: '0.875rem',
background: isSaving ? undefined : 'linear-gradient(to right, #10b981, #059669)',
backgroundColor: isSaving ? '#9ca3af' : undefined,
color: 'white',
border: 'none',
borderRadius: '0.5rem',
fontSize: '1rem',
fontWeight: 600,
cursor: isSaving ? 'not-allowed' : 'pointer',
opacity: isSaving ? 0.6 : 1,
transition: 'all 0.2s',
}}
>
{isSaving ? 'Сохранение...' : 'Сохранить'}
</button>
</div>
{toastMessage && (