fix(editor): stop the t-readout wrapping so playback doesn't reflow
The fixed-width time readout wrapped to two lines for fractional times (dt 0.25 → 't = 70.25'), growing the panel a row each frame and reflowing the whole panel — the real flicker. Pin its width and forbid wrapping.
This commit is contained in:
@@ -134,7 +134,9 @@ const chart = computed(() => {
|
||||
aria-label="Playhead"
|
||||
@input="sim.seek(Number(($event.target as HTMLInputElement).value))"
|
||||
/>
|
||||
<span class="w-14 text-right font-mono text-xs tabular-nums text-base-content/60">
|
||||
<span
|
||||
class="w-24 shrink-0 whitespace-nowrap text-right font-mono text-xs tabular-nums text-base-content/60"
|
||||
>
|
||||
t = {{ sim.currentTime ?? 0 }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user