Files
cline-multi-mirror/webview-ui/src/components/settings/common/RemotelyConfiguredInputWrapper.tsx
T
Adam-PAN 6965212ff7 fix: resolve Base URL input garbled text and collapsed width in API settings
- Fix scrambled text when typing in Base URL fields: debounced input hook now ignores echo round-trips of its own saves and defers unexpected external updates during an edit grace period

- Serialize API configuration saves through a queue so rapid successive updates are applied in order on the backend

- Fix Base URL input collapsing to tiny width: Radix TooltipTrigger now renders a full-width block wrapper instead of the default shrink-to-fit button

- Trim Base URL values only on commit instead of every keystroke to prevent cursor jumps

- Skip redundant save on mount and flush uncommitted edits on unmount

- Bump version to 4.3.1, update CHANGELOG and README
2026-09-17 02:53:43 +08:00

19 lines
798 B
TypeScript

import { useTranslation } from "react-i18next"
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip"
export function RemotelyConfiguredInputWrapper({ hidden, children }: React.PropsWithChildren<{ hidden: boolean }>) {
const { t } = useTranslation("settings")
return (
<Tooltip>
<TooltipContent hidden={hidden}>{t("settings.remotelyConfiguredMessage")}</TooltipContent>
{/* asChild + block wrapper: without asChild, Radix renders a <button> which
shrinks to fit its content and collapses full-width inputs inside it. */}
<TooltipTrigger asChild>
<div style={{ display: "block", width: "100%" }}>{children}</div>
</TooltipTrigger>
</Tooltip>
)
}
export const LockIcon = () => <i className="codicon codicon-lock text-description text-sm" />