4.3.0: Автовыполнение задач в конце дня
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m11s

This commit is contained in:
poignatov
2026-01-29 17:47:47 +03:00
parent 5c5fc07481
commit f266508d04
7 changed files with 382 additions and 298 deletions

View File

@@ -64,6 +64,14 @@
font-weight: 600;
color: #1f2937;
margin: 0;
display: flex;
align-items: center;
gap: 0.5rem;
}
.task-detail-auto-complete-icon {
color: #6366f1;
flex-shrink: 0;
}
.task-reward-message {
@@ -191,17 +199,70 @@
.task-actions-section {
display: flex;
flex-direction: column;
gap: 0.375rem;
}
.task-actions-bottom {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 0;
}
.task-action-left {
flex: 1;
display: flex;
}
.complete-at-end-of-day-checkbox {
margin-top: 0;
}
.complete-at-end-of-day-checkbox .checkbox-label {
font-size: 0.85rem;
gap: 0.25rem;
}
.complete-at-end-of-day-checkbox .checkbox-input {
width: 1rem;
height: 1rem;
}
.checkbox-label {
display: flex;
align-items: center;
gap: 0.5rem;
cursor: pointer;
font-size: 0.95rem;
color: #374151;
user-select: none;
}
.checkbox-input {
width: 1.125rem;
height: 1.125rem;
cursor: pointer;
accent-color: #6366f1;
}
.checkbox-label:has(.checkbox-input:disabled) {
opacity: 0.5;
cursor: not-allowed;
}
.task-actions-buttons {
display: flex;
gap: 0.75rem;
align-items: center;
align-items: stretch;
}
.complete-button {
flex: 1;
.task-action-complete-buttons {
display: flex;
gap: 0.25rem;
align-items: stretch;
}
.action-button {
padding: 0.75rem 1.5rem;
background: linear-gradient(to right, #6366f1, #8b5cf6);
color: white;
@@ -214,52 +275,69 @@
display: flex;
align-items: center;
justify-content: center;
line-height: 1.5;
height: calc(0.75rem * 2 + 1rem + 0.125rem * 2);
}
.complete-button:hover:not(:disabled) {
.action-button:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.complete-button:disabled {
.action-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.close-button-outline {
.action-button-check {
width: calc(0.75rem * 2 + 1rem + 0.125rem * 2);
min-width: calc(0.75rem * 2 + 1rem);
height: calc(0.75rem * 2 + 1rem + 0.125rem * 2);
padding: 0.75rem;
background: transparent;
color: #6366f1;
border: 2px solid #6366f1;
border-radius: 0.375rem;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
min-width: 2.75rem;
height: 2.75rem;
flex-shrink: 0;
box-sizing: border-box;
background: linear-gradient(to right, #10b981, #059669);
margin: 0;
}
.close-button-outline:hover:not(:disabled) {
.action-button-check:hover:not(:disabled) {
transform: translateY(-1px);
background: rgba(99, 102, 241, 0.1);
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.close-button-outline:disabled {
opacity: 0.5;
cursor: not-allowed;
.action-button-double-check {
width: calc(0.75rem * 2 + 1rem + 0.125rem * 2);
min-width: calc(0.75rem * 2 + 1rem);
height: calc(0.75rem * 2 + 1rem + 0.125rem * 2);
padding: 0.75rem;
flex-shrink: 0;
box-sizing: border-box;
background: transparent;
border: 2px solid #10b981;
color: #10b981;
margin: 0;
}
.action-button-double-check:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
background: rgba(16, 185, 129, 0.1);
}
.action-button-save {
flex: 1;
width: 100%;
}
.next-task-date-info {
font-size: 0.875rem;
color: #6b7280;
text-align: left;
margin-top: -0.125rem;
margin-bottom: -0.5rem;
text-align: right;
}
.next-task-date-bold {
font-weight: 600;
}
.loading,
@@ -317,77 +395,3 @@
text-decoration: none;
}
/* Dropdown styles */
.dropdown-container {
position: relative;
display: inline-block;
}
.dropdown-button {
padding: 0;
background: transparent;
color: #6366f1;
border: 2px solid #6366f1;
border-radius: 0.375rem;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
width: calc(0.75rem * 2 + 1.2rem + 4px);
height: calc(0.75rem * 2 + 1.2rem + 4px);
box-sizing: border-box;
}
.dropdown-button:hover:not(:disabled) {
transform: translateY(-1px);
background: rgba(99, 102, 241, 0.1);
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}
.dropdown-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.dropdown-menu {
position: fixed;
background: white;
border: 1px solid #e5e7eb;
border-radius: 0.5rem;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
min-width: 240px;
z-index: 1800;
overflow: hidden;
}
.dropdown-item {
width: 100%;
padding: 0.5rem 1rem;
background: none;
border: none;
text-align: left;
font-size: 0.95rem;
color: #374151;
cursor: pointer;
transition: background-color 0.2s;
display: flex;
align-items: center;
border-bottom: 1px solid #f3f4f6;
}
.dropdown-item:last-child {
border-bottom: none;
}
.dropdown-item:hover:not(:disabled) {
background-color: #f9fafb;
color: #1f2937;
}
.dropdown-item:disabled {
opacity: 0.5;
cursor: not-allowed;
}