This Nicolium 2.000 patch: a. Isn't suitable for upstream. b. Is suitable for some instances. By default, Nicolium inserts panels with "click here" prompts to fill timeline gaps appear. I prefer auto-fill because the frequent pop-ups are distracting. The related option settings that I see don't work for me. So, I've used this patch to force auto-fill. Disclaimer: This patch was created by Google AI. It seems to work, regardless. --- nicolium-git.old/packages/nicolium/src/columns/timeline.tsx +++ nicolium-git/packages/nicolium/src/columns/timeline.tsx @@ -4,7 +4,7 @@ import iconCaretDoubleUp from '@phosphor-icons/core/regular/caret-double-up.svg' import iconRepeat from '@phosphor-icons/core/regular/repeat.svg'; import iconRocketLaunch from '@phosphor-icons/core/regular/rocket-launch.svg'; import clsx from 'clsx'; -import React, { useMemo, useRef, useState } from 'react'; +import React, { useEffect, useMemo, useRef, useState } from 'react'; import { defineMessages, FormattedList, FormattedMessage, useIntl } from 'react-intl'; import { AccountLink } from '@/components/accounts/account-link'; @@ -122,6 +122,19 @@ const TimelineGap: React.FC = ({ onMoveDown, }) => { const [isLoading, setIsLoading] = useState(false); + const [hasAutoFilled, setHasAutoFilled] = useState(false); + + useEffect(() => { + const triggerSequentialFill = async () => { + if (!hasAutoFilled && !isLoading) { + setHasAutoFilled(true); + await handleFill('down'); + await handleFill('up'); + } + }; + triggerSequentialFill(); + }, [hasAutoFilled, isLoading]); + const intl = useIntl(); const node = useRef(null); @@ -219,7 +232,10 @@ const TimelineGap: React.FC = ({ }; return ( - + +