fix(blackbox): the timeline's labels on a narrow timeline, marks out of view, the cab on a short window

- The hover label and the clock bubble keep to the left edge on a
  narrow timeline instead of throwing in Render.
- A mark is told under the pointer only when it is drawn: within the
  plot and the time shown.
- The device groups are clipped at their own width, not 4 px short.
- On a short window the cab card scrolls, so the list above it keeps
  room for a few rows.
This commit is contained in:
maj00r
2026-11-11 01:50:40 +01:00
parent 9ee059bc16
commit 4dcfd1c4e3
3 changed files with 10 additions and 5 deletions

View File

@@ -163,7 +163,7 @@ public sealed class CabPanel : Control
for (int g = 0; g < groups.Length; g++)
{
double groupWidth = Math.Max(20, widths[g] + spare);
using (context.PushClip(new Rect(x, top, groupWidth - 4, size.Height - top)))
using (context.PushClip(new Rect(x, top, groupWidth, size.Height - top)))
{
context.DrawText(MapView.Text(Strings[groups[g].Title], Palette.DimText, 10, FontWeight.SemiBold), new Point(x, top));
double y = top + 16;