fix(editor): solid-filled connected port + larger dot + tooltip fallback
Three issues from Stefan's screenshot:
1. Connected port dots rendered as a ring with a small
surface-coloured pin in the centre — read as a hollow
bullseye target rather than 'this port is wired'.
Stefan asked for a plain filled circle: removed the
inner pin so connected = solid disc, disconnected =
ring with surface fill. One unambiguous visual switch.
2. Port dots bumped from 12 px to 14 px diameter. At 50 %
zoom (and under the wider cards we now draw) the 12 px
outline was sinking into the canvas background.
3. Tooltips now appear on every visible port label, not
only on those whose ModuleSpec carries a description.
Fallback chain:
- manifest description in active locale
- manifest description in English (peer)
- 'fieldname · type' when the field is declared but
the description is missing
- bare 'fieldname' for implicit (YAML-only) fields
Operators always see something on hover, useful when
the hub binary is older than the per-field ModuleInfo
RPC and the editor is running in implicit-only mode.
Bumps fai_studio_flow_editor to 0.10.3.
Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
parent
3a6e92fe09
commit
a1d25fd48a
3 changed files with 57 additions and 54 deletions
|
|
@ -83,10 +83,13 @@ class NodeGeometry {
|
|||
/// without overlapping the label text.
|
||||
static const double portGutter = 18;
|
||||
|
||||
/// Diameter of the canvas-side port dot — sized to the
|
||||
/// body's labelSmall row (~11 px text + 11 px breathing
|
||||
/// room) so the dot reads as the port without crowding.
|
||||
static const double portDotSize = 12;
|
||||
/// Diameter of the canvas-side port dot. Sized so the
|
||||
/// connected-vs-outlined state reads clearly at any zoom:
|
||||
/// a 12 px outline tends to disappear into the background
|
||||
/// at 50 % zoom; 14 px keeps the ring visible and gives
|
||||
/// the filled (connected) variant enough mass to stand out
|
||||
/// against the card shadow.
|
||||
static const double portDotSize = 14;
|
||||
|
||||
/// Total card height for a node carrying [inputCount] inputs
|
||||
/// on the left + [outputCount] outputs on the right. The
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue