Improve timer interval refresh behavior
All checks were successful
Deploy Sokko G / deploy (push) Successful in 7s

This commit is contained in:
Shinuwa 2026-08-03 15:57:25 +02:00
parent fdc81373c6
commit a6b2388763
9 changed files with 305 additions and 39 deletions

View file

@ -3453,6 +3453,11 @@ button.combo-input-token.combo-value-grab .ui-icon {
gap: 7px;
}
.timer-field-spacer {
display: block;
min-height: 17px;
}
.timer-countdown-form input,
.timer-countdown-form select,
.timer-control-panel input {
@ -3578,6 +3583,32 @@ button.combo-input-token.combo-value-grab .ui-icon {
text-align: center;
}
.timer-interval-fields {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--space-2);
min-width: 0;
}
.timer-interval-fields label {
min-width: 0;
gap: 5px;
}
.timer-interval-fields .time-parts-input {
grid-template-columns: minmax(22px, 1fr) 4px minmax(22px, 1fr) 4px minmax(22px, 1fr);
min-height: 38px;
}
.timer-interval-fields .time-parts-input input {
min-height: 36px;
font-size: var(--font-size-xs);
}
.timer-interval-fields .time-parts-input span {
font-size: var(--font-size-xs);
}
.timer-control-panel > span,
.timer-control-panel label span {
color: var(--color-text-secondary);
@ -3658,12 +3689,13 @@ button.combo-input-token.combo-value-grab .ui-icon {
.timer-entry-meta {
display: flex;
grid-column: 1 / -2;
flex-wrap: wrap;
flex-wrap: nowrap;
min-width: 0;
gap: 4px 8px;
margin: 0;
padding: 1px 10px 0;
opacity: 0.68;
overflow: hidden;
}
.timer-entry-summary .timer-value,
@ -3735,7 +3767,49 @@ button.combo-input-token.combo-value-grab .ui-icon {
color: var(--color-text-muted);
}
.timer-inline-reset .ui-icon {
.timer-inline-refresh-toggle {
display: inline-grid;
grid-template-columns: 13px 18px;
width: 42px;
min-width: 42px;
min-height: 26px;
align-items: center;
gap: 3px;
padding: 0 4px;
border-color: rgba(165, 180, 252, 0.08);
border-radius: var(--radius-sm);
background: rgba(5, 7, 17, 0.26);
color: var(--color-text-muted);
}
.timer-inline-refresh-toggle i {
position: relative;
display: block;
width: 18px;
height: 12px;
border: 1px solid rgba(165, 180, 252, 0.18);
border-radius: var(--radius-pill);
background: rgba(7, 10, 24, 0.72);
}
.timer-inline-refresh-toggle i::before {
content: "";
position: absolute;
top: 50%;
left: 2px;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--color-text-muted);
transform: translateY(-50%);
transition:
left var(--duration-fast) var(--ease-standard),
background-color var(--duration-fast) var(--ease-standard),
box-shadow var(--duration-fast) var(--ease-standard);
}
.timer-inline-reset .ui-icon,
.timer-inline-refresh-toggle .ui-icon {
width: 14px;
height: 14px;
}
@ -3766,16 +3840,47 @@ button.combo-input-token.combo-value-grab .ui-icon {
}
.timer-entry-meta span {
display: inline-flex;
align-items: center;
gap: 7px;
min-width: 0;
overflow: hidden;
color: var(--color-text-muted);
font-size: var(--font-size-xs);
font-weight: 700;
text-overflow: ellipsis;
white-space: nowrap;
}
.timer-list-item em {
display: inline-flex;
align-items: center;
gap: 7px;
flex: 0 0 auto;
color: var(--color-text-muted);
font-size: var(--font-size-xs);
font-style: normal;
font-weight: 700;
white-space: nowrap;
}
.timer-entry-meta b {
min-width: 0;
overflow: hidden;
font: inherit;
text-overflow: ellipsis;
white-space: nowrap;
}
.timer-entry-meta b + b::before,
.timer-entry-meta em::before {
content: "";
display: inline-block;
width: 1px;
height: 10px;
margin-right: 7px;
background: rgba(165, 180, 252, 0.22);
vertical-align: -1px;
}
.timer-results-card {
@ -4185,14 +4290,16 @@ button.combo-input-token.combo-value-grab .ui-icon {
}
.timer-alert-mode-button:hover,
.timer-alert-mode-button.active {
.timer-alert-mode-button.active,
.timer-inline-refresh-toggle:hover:not(:disabled) {
border-color: rgba(196, 181, 253, 0.2);
background: rgba(21, 26, 48, 0.42);
color: var(--color-text-primary);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.timer-alert-mode-button.active {
.timer-alert-mode-button.active,
.timer-inline-refresh-toggle.active {
border-color: rgba(246, 196, 83, 0.26);
background:
linear-gradient(135deg, rgba(246, 196, 83, 0.08), rgba(139, 92, 246, 0.08)),
@ -4200,9 +4307,23 @@ button.combo-input-token.combo-value-grab .ui-icon {
color: var(--color-accent-gold);
}
.timer-inline-refresh-toggle.active i {
border-color: rgba(246, 196, 83, 0.36);
background: rgba(246, 196, 83, 0.12);
}
.timer-inline-refresh-toggle.active i::before {
left: 7px;
background: var(--color-accent-gold);
box-shadow: 0 0 10px rgba(246, 196, 83, 0.28);
}
.timer-alert-mode-button:disabled,
.timer-alert-mode-button:disabled:hover,
.timer-alert-mode-button.active:disabled {
.timer-alert-mode-button.active:disabled,
.timer-inline-refresh-toggle:disabled,
.timer-inline-refresh-toggle:disabled:hover,
.timer-inline-refresh-toggle.active:disabled {
cursor: not-allowed;
border-color: rgba(165, 180, 252, 0.025);
background: rgba(5, 7, 17, 0.08);
@ -4211,7 +4332,8 @@ button.combo-input-token.combo-value-grab .ui-icon {
box-shadow: none;
}
.timer-alert-mode-button:disabled .ui-icon {
.timer-alert-mode-button:disabled .ui-icon,
.timer-inline-refresh-toggle:disabled .ui-icon {
opacity: 0.34;
}