Make more room for direction slider next to add/remove/cycle buttons

This commit is contained in:
stopflock committed 2025-11-09 14:32:05 -06:00
1 parent 4ae0737016
commit e45f10e496
2 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -75,7 +75,7 @@ class AddNodeSheet extends StatelessWidget {
onPressed: session.directions.length > 1 ? () => appState.removeDirection() : null, onPressed: session.directions.length > 1 ? () => appState.removeDirection() : null,
tooltip: 'Remove current direction', tooltip: 'Remove current direction',
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
constraints: const BoxConstraints(minWidth: 32, minHeight: 32), constraints: const BoxConstraints(minWidth: 28, minHeight: 32),
), ),
// Add button // Add button
IconButton( IconButton(
@@ -83,7 +83,7 @@ class AddNodeSheet extends StatelessWidget {
onPressed: () => appState.addDirection(), onPressed: () => appState.addDirection(),
tooltip: 'Add new direction', tooltip: 'Add new direction',
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
constraints: const BoxConstraints(minWidth: 32, minHeight: 32), constraints: const BoxConstraints(minWidth: 28, minHeight: 32),
), ),
// Cycle button // Cycle button
IconButton( IconButton(
@@ -91,7 +91,7 @@ class AddNodeSheet extends StatelessWidget {
onPressed: session.directions.length > 1 ? () => appState.cycleDirection() : null, onPressed: session.directions.length > 1 ? () => appState.cycleDirection() : null,
tooltip: 'Cycle through directions', tooltip: 'Cycle through directions',
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
constraints: const BoxConstraints(minWidth: 32, minHeight: 32), constraints: const BoxConstraints(minWidth: 28, minHeight: 32),
), ),
], ],
], ],
+3 -3
View File
@@ -76,7 +76,7 @@ class EditNodeSheet extends StatelessWidget {
onPressed: session.directions.length > 1 ? () => appState.removeDirection() : null, onPressed: session.directions.length > 1 ? () => appState.removeDirection() : null,
tooltip: 'Remove current direction', tooltip: 'Remove current direction',
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
constraints: const BoxConstraints(minWidth: 32, minHeight: 32), constraints: const BoxConstraints(minWidth: 28, minHeight: 32),
), ),
// Add button // Add button
IconButton( IconButton(
@@ -84,7 +84,7 @@ class EditNodeSheet extends StatelessWidget {
onPressed: () => appState.addDirection(), onPressed: () => appState.addDirection(),
tooltip: 'Add new direction', tooltip: 'Add new direction',
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
constraints: const BoxConstraints(minWidth: 32, minHeight: 32), constraints: const BoxConstraints(minWidth: 28, minHeight: 32),
), ),
// Cycle button // Cycle button
IconButton( IconButton(
@@ -92,7 +92,7 @@ class EditNodeSheet extends StatelessWidget {
onPressed: session.directions.length > 1 ? () => appState.cycleDirection() : null, onPressed: session.directions.length > 1 ? () => appState.cycleDirection() : null,
tooltip: 'Cycle through directions', tooltip: 'Cycle through directions',
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
constraints: const BoxConstraints(minWidth: 32, minHeight: 32), constraints: const BoxConstraints(minWidth: 28, minHeight: 32),
), ),
], ],
], ],