mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-26 23:36:20 +00:00
fix(app): always open small tree branches, even with a crowded centre
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0005a8e7a4
commit
3b0d4a5f81
2 files changed
+17
-3
No files matched your search
@@ -398,6 +398,17 @@ void main() {
|
||||
expect(hub.expanded, isFalse);
|
||||
});
|
||||
|
||||
test('small branches open even when the centre is crowded', () {
|
||||
final root = TreeItem('Graph');
|
||||
for (var i = 0; i < 300; i++) {
|
||||
root.children.add(TreeItem('Note $i', global: i));
|
||||
}
|
||||
final ns = TreeItem('Anthropic')..children.add(TreeItem('Claude'));
|
||||
root.children.add(ns);
|
||||
expandInitial(root);
|
||||
expect(ns.expanded, isTrue);
|
||||
});
|
||||
|
||||
testWidgets('branches expand and collapse in the canvas', (tester) async {
|
||||
await pumpGraph(tester, _HubBackend(bigHub()));
|
||||
await mode(tester, 'Tree');
|
||||
|
||||
Reference in new issue
Block a user