chore: refactor defaultBranchWidthRem initialization and remove unnecessary code

This commit is contained in:
Pavel Laptev 2024-02-11 22:17:26 +01:00 committed by GitButler
parent 232bb7be16
commit fb78f18ad5

View File

@ -50,10 +50,7 @@
let rsViewport: HTMLElement; let rsViewport: HTMLElement;
const userSettings = getContext<SettingsStore>(SETTINGS_CONTEXT); const userSettings = getContext<SettingsStore>(SETTINGS_CONTEXT);
const defaultBranchWidthRem = persisted<number | undefined>( const defaultBranchWidthRem = persisted<number | undefined>(24, 'defaulBranchWidth' + project.id);
24,
'defaulBranchWidth' + project.id
);
const laneWidthKey = 'laneWidth_'; const laneWidthKey = 'laneWidth_';
let laneWidth: number; let laneWidth: number;