fix: redesign session log player controls, fix tooltip overlap and drop dot separators

This commit is contained in:
LukeGus committed 2026-10-01 00:09:32 -05:00
1 parent b3c8f37c0d
commit 9015d5dccb
35 files changed
+434 -283

No files matched your search

+5 -2
View File
@@ -86,7 +86,10 @@
"imageUploaded": "Image uploaded: {{path}}",
"imageClipboardUnavailable": "This browser cannot read images from the clipboard",
"imageClipboardEmpty": "No image found in the clipboard",
"localShell": "Local terminal shell"
"localShell": "Local terminal shell",
"autocompleteHintComplete": "Tab or Enter to complete",
"autocompleteHintNavigate": "↑↓ to navigate",
"autocompleteHintClose": "Esc to close"
},
"terminalToolbar": {
"detachTmux": "Detach tmux",
@@ -163,7 +166,7 @@
},
"sessionTimeoutMinutes": {
"label": "Terminal Session Persistence",
"description": "How long a disconnected terminal is kept alive on the server before it is closed. Min 1 · Max 1440 minutes. For sessions that must outlive this, enable Auto-Tmux on the host."
"description": "How long a disconnected terminal is kept alive on the server before it is closed. Min 1, max 1440 minutes. For sessions that must outlive this, enable Auto-Tmux on the host."
},
"commandHistoryEnabled": {
"label": "Command History",
@@ -1,5 +1,6 @@
import React, { useEffect, useRef } from "react";
import { cn } from "@termix/plugin-sdk/ui";
import { useTranslation } from "@termix/plugin-sdk/frontend";
interface CommandAutocompleteProps {
suggestions: string[];
@@ -53,6 +54,7 @@ export function CommandAutocomplete({
position,
visible,
}: CommandAutocompleteProps) {
const { t } = useTranslation();
const containerRef = useRef<HTMLDivElement>(null);
const selectedRef = useRef<HTMLDivElement>(null);
@@ -103,7 +105,11 @@ export function CommandAutocomplete({
))}
</div>
<div className="px-3 py-1 text-xs text-muted-foreground border-t border-border bg-muted/50 shrink-0">
Tab/Enter to complete • ↑↓ to navigate • Esc to close
<span className="flex flex-wrap gap-x-3">
<span>{t("terminal.autocompleteHintComplete")}</span>
<span>{t("terminal.autocompleteHintNavigate")}</span>
<span>{t("terminal.autocompleteHintClose")}</span>
</span>
</div>
</div>
);