refactor: improve split pane drag-and-drop and resize handle UX
This commit is contained in:
@@ -302,7 +302,7 @@ function normalizeSizes(input: NormalizeSizesInput): number[] {
|
||||
return sanitized.map((value) => value / total);
|
||||
}
|
||||
|
||||
function clampNormalizedSizes(sizes: number[]): number[] {
|
||||
export function clampNormalizedSizes(sizes: number[]): number[] {
|
||||
if (sizes.length === 0) {
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user