4.8.2: Улучшены отступы в форме редактирования цели
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m8s

This commit is contained in:
poignatov
2026-02-02 19:53:58 +03:00
parent de29e3f602
commit 763b13358e
4 changed files with 22 additions and 7 deletions

View File

@@ -323,7 +323,7 @@
}
.condition-form form {
padding: 1.5rem;
padding: 1.5rem 1.5rem 0.75rem 1.5rem;
flex: 1;
display: flex;
flex-direction: column;
@@ -333,6 +333,17 @@
display: flex;
gap: 1rem;
margin-top: 1.5rem;
margin-bottom: 0.125rem;
}
.calculated-weeks-info {
margin-top: 0.125rem;
margin-bottom: 0;
text-align: left;
color: #666;
font-size: 0.85em;
min-height: 1.2em;
line-height: 1.2em;
}
.submit-button {

View File

@@ -1296,10 +1296,14 @@ function ConditionForm({ tasks, projects, onSubmit, onCancel, editingCondition,
{isEditing ? 'Сохранить' : 'Добавить'}
</button>
</div>
{type === 'project_points' && calculatedWeeksText && (
<div className="calculated-weeks-info" style={{ marginTop: '4px', textAlign: 'left', color: '#666', fontSize: '0.85em' }}>
<span>Срок: </span>
<span style={{ fontWeight: '600' }}>{calculatedWeeksText}</span>
{type === 'project_points' && (
<div className="calculated-weeks-info">
{calculatedWeeksText && (
<>
<span>Срок: </span>
<span style={{ fontWeight: '600' }}>{calculatedWeeksText}</span>
</>
)}
</div>
)}
</form>