Open flowww-dev opened 9 months ago
/**
@return Breakpoint[] */ function get_breakpoints() { $prefs = get_preferences();
$builtinBreakpoints = get_builtin_breakpoints();
$customBreakpoints = $prefs['customBreakpoints'];
$breakpoints = array_merge($builtinBreakpoints, $customBreakpoints);
return $breakpoints; }
At the moment breakpoints in breakdance are only merged and not ordered so you always need to add min and max breakpoint values. Breakdance uses the desktop first approach - so typically you don't need to add a min value if the custom breakpoints are right ordered.
https://breakdance.canny.io/features/p/custom-breakpoint-order
It should be very easy to implement this. Look at: breakdance/plugin/config/breakpoints.php