mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-15 12:23:51 +00:00
refactor: small fixes and style tweaks
fix: prevent reflow on editing images fix: schedule overview fix: report on all events refactor: over-under time colours fix: prevent edit on delete
This commit is contained in:
committed by
Carlos Valente
parent
1e1f547ce1
commit
ad2ef3b53f
+1
-1
@@ -103,7 +103,7 @@ function DurationInput({
|
||||
onClick={handleFakeFocus}
|
||||
onFocus={handleFakeFocus}
|
||||
muted={!lockedValue}
|
||||
offset={delayed ? 'behind' : undefined}
|
||||
offset={delayed ? 'over' : undefined}
|
||||
ref={textRef}
|
||||
>
|
||||
{children}
|
||||
|
||||
+4
-4
@@ -14,12 +14,12 @@
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
&.ahead {
|
||||
color: $playback-ahead;
|
||||
&.under {
|
||||
color: $playback-under;
|
||||
}
|
||||
|
||||
&.behind {
|
||||
color: $ontime-delay-text;
|
||||
&.over {
|
||||
color: $playback-over;
|
||||
}
|
||||
|
||||
&.muted {
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import { cx } from '../../../../common/utils/styleUtils';
|
||||
import style from './TextLikeInput.module.scss';
|
||||
|
||||
interface TextLikeInputProps extends HTMLAttributes<HTMLSpanElement> {
|
||||
offset?: 'ahead' | 'behind';
|
||||
offset?: 'over' | 'under' | 'muted' | null;
|
||||
muted?: boolean;
|
||||
}
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@ function TimeInputDuration({
|
||||
onClick={handleFakeFocus}
|
||||
onFocus={handleFakeFocus}
|
||||
muted={!lockedValue}
|
||||
offset={delayed ? 'behind' : undefined}
|
||||
offset={delayed ? 'over' : undefined}
|
||||
ref={textRef}
|
||||
>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user