Fix scroll calculation for project priorities list (v2.8.2)
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 22s

This commit is contained in:
Play Life Bot
2026-01-02 18:05:02 +03:00
parent ac34f480be
commit 01e8b3468c
3 changed files with 5 additions and 5 deletions

View File

@@ -864,7 +864,7 @@ function ProjectPriorityManager({ allProjectsData, currentWeekData, shouldLoad,
const activeProject = allItems.find(item => item.name === activeId)
return (
<div className="max-w-4xl mx-auto h-full flex flex-col">
<div className="max-w-4xl mx-auto flex flex-col max-h-[calc(100vh-11rem)]">
{onNavigate && (
<div className="flex justify-end mb-4 flex-shrink-0">
<button
@@ -906,7 +906,7 @@ function ProjectPriorityManager({ allProjectsData, currentWeekData, shouldLoad,
onDragEnd={handleDragEnd}
onDragCancel={handleDragCancel}
>
<div className="space-y-6 overflow-y-auto flex-1 min-h-0">
<div className="space-y-6 overflow-y-auto flex-1" style={{ minHeight: 0 }}>
<SortableContext items={maxPriority.map(p => p.name)} strategy={verticalListSortingStrategy}>
<PrioritySlot
title="Максимальный приоритет (1 проект)"