Files
figcraft/docs
Denis Gomes b0569e2723 M3: Layers: the eye and padlock stay in view, and a name takes at most 400 pt
A text layer named after a paragraph made the list over 1000 pt wide (#1904
widens it to the widest name). The eye and padlock sat at the row's far end,
so hiding a layer meant scrolling sideways to find them.

The eye and padlock now sit at the right edge of the list's view. While they
show (hover, a hidden or locked layer, or a row a held sweep has taken in),
the name is clipped before them instead of drawn beneath. Scrolling sideways
still reveals the rest of a long name, as #1904 asked.

On a row as wide as the view nothing moves: the row is already inset 8 pt
from the view's edge, so the eye stays at 262 to 282 pt (mirrored 1158 to
1178 pt), as on main. On a row nested so deep that the buttons at the view's
edge would cover its disclosure triangle, icon or name start, they stay
after the name start, at the row's end, so the triangle still takes clicks.

NAME_ROOM drops from 1200 to 400 pt. It stops a name of thousands of
characters (#1650) from making the list that wide, and 400 pt still holds a
variant name like "Size=small, Type=primary, State=default, Icon=leading,
Width=full" in full. The "W" name in the measuring test is 25 letters, and
the test checks that it is wider than the panel leaves a name and well under
the cap, so it holds with and without craft-fonts.

Tests: the_eye_of_a_long_named_layer_sits_at_the_panels_edge_and_is_clickable,
a_paragraph_named_text_layer_widens_the_list_no_more_than_the_name_cap,
the_eye_of_an_ordinary_row_stays_where_it_was (passes on main too),
a_swept_long_named_row_keeps_its_name_clipped_before_the_eye and
the_disclosure_triangle_of_a_deeply_nested_row_is_not_under_the_padlock.
2026-11-19 16:16:19 -05:00
..