refactor(timeline): default to fixed size timeline

This commit is contained in:
Carlos Valente
2025-11-12 06:25:02 +01:00
committed by Carlos Valente
parent 843f5a968d
commit f5753a0f5a
2 changed files with 10 additions and 10 deletions
@@ -22,9 +22,9 @@ export const getTimelineOptions = (timeFormat: string): ViewOption[] => {
defaultValue: false,
},
{
id: 'autosize',
title: 'Autosize timeline',
description: 'Timeline will adjust sizes to help with readability and automatically scroll if necessary',
id: 'fixedSize',
title: 'Fixed timeline size',
description: 'Timeline will have a fixed size to prevent scrolling',
type: 'boolean',
defaultValue: false,
},
@@ -35,7 +35,7 @@ export const getTimelineOptions = (timeFormat: string): ViewOption[] => {
type TimelineOptions = {
hidePast: boolean;
autosize: boolean;
fixedSize: boolean;
};
/**
@@ -48,7 +48,7 @@ function getOptionsFromParams(searchParams: URLSearchParams, defaultValues?: URL
return {
hidePast: isStringBoolean(getValue('hidePast')),
autosize: isStringBoolean(getValue('autosize')),
fixedSize: isStringBoolean(getValue('fixedSize')),
};
}