diff --git a/design-system/packages/ui/src/components/TabGroup/TabGroup.module.css b/design-system/packages/ui/src/components/TabGroup/TabGroup.module.css index 2c64c64139..2d1ed68235 100644 --- a/design-system/packages/ui/src/components/TabGroup/TabGroup.module.css +++ b/design-system/packages/ui/src/components/TabGroup/TabGroup.module.css @@ -13,6 +13,8 @@ display: inline-flex; align-items: center; gap: var(--openbitfun-control-tab-group-gap); + -webkit-user-select: none; + user-select: none; } .tabGroup[data-size="sm"] { @@ -62,6 +64,8 @@ line-height: var(--openbitfun-type-label-md-line-height); white-space: nowrap; cursor: pointer; + -webkit-user-select: none; + user-select: none; transition: color var(--openbitfun-motion-duration-fast) var(--openbitfun-motion-easing-standard); } diff --git a/design-system/packages/ui/src/components/TabGroup/TabGroup.tsx b/design-system/packages/ui/src/components/TabGroup/TabGroup.tsx index acb12a3a9b..5a212c5674 100644 --- a/design-system/packages/ui/src/components/TabGroup/TabGroup.tsx +++ b/design-system/packages/ui/src/components/TabGroup/TabGroup.tsx @@ -62,10 +62,22 @@ function getSelectedValue( : getFirstEnabledValue(items); } +function clearContainedSelection(container: HTMLElement) { + const selection = container.ownerDocument.defaultView?.getSelection?.(); + if (!selection || selection.isCollapsed) return; + if ( + (selection.anchorNode && container.contains(selection.anchorNode)) + || (selection.focusNode && container.contains(selection.focusNode)) + ) { + selection.removeAllRanges(); + } +} + export const TabGroup = forwardRef(function TabGroup({ className, defaultValue, items, + onContextMenuCapture, onValueChange, renderItem, size = "md", @@ -132,6 +144,10 @@ export const TabGroup = forwardRef(function TabGr data-openbitfun-component="tab-group" data-openbitfun-part="root" data-size={size} + onContextMenuCapture={(event) => { + clearContainedSelection(event.currentTarget); + onContextMenuCapture?.(event); + }} ref={ref} role="tablist" > diff --git a/design-system/packages/ui/tests/tab-group.test.mjs b/design-system/packages/ui/tests/tab-group.test.mjs index 7bc8411035..087602cdc7 100644 --- a/design-system/packages/ui/tests/tab-group.test.mjs +++ b/design-system/packages/ui/tests/tab-group.test.mjs @@ -237,3 +237,19 @@ test("TabGroup implements wrapped arrow, Home, and End navigation", async () => assert.match(source, /enabledItems\.length/); assert.match(source, /onValueChange\?\.\(item\.value\)/); }); + +test("TabGroup prevents accidental text selection on the tablist and tabs", async () => { + const styles = await readFile( + new URL("../src/components/TabGroup/TabGroup.module.css", import.meta.url), + "utf8", + ); + const tabGroupRule = styles.match(/\.tabGroup\s*\{([^}]*)\}/s)?.[1]; + const tabRule = styles.match(/\.tab\s*\{([^}]*)\}/s)?.[1]; + + assert.ok(tabGroupRule); + assert.ok(tabRule); + assert.match(tabGroupRule, /-webkit-user-select:\s*none;/); + assert.match(tabGroupRule, /user-select:\s*none;/); + assert.match(tabRule, /-webkit-user-select:\s*none;/); + assert.match(tabRule, /user-select:\s*none;/); +}); diff --git a/src/web-ui/src/app/components/SceneBar/SceneBar.scss b/src/web-ui/src/app/components/SceneBar/SceneBar.scss index 797950ffc9..94ecec2916 100644 --- a/src/web-ui/src/app/components/SceneBar/SceneBar.scss +++ b/src/web-ui/src/app/components/SceneBar/SceneBar.scss @@ -11,6 +11,7 @@ height: 100%; overflow: hidden; background: transparent; + -webkit-user-select: none; user-select: none; &__item { @@ -58,7 +59,9 @@ line-height: var(--openbitfun-type-micro-line-height); letter-spacing: var(--openbitfun-type-micro-letter-spacing); white-space: nowrap; - pointer-events: none; + cursor: default; + -webkit-user-select: none; + user-select: none; animation: openbitfun-scene-device-group-in var(--openbitfun-motion-duration-normal) var(--openbitfun-motion-easing-standard) both; @@ -235,6 +238,11 @@ max-inline-size: 220px; } + &__tabs [role='tab'] { + -webkit-user-select: none; + user-select: none; + } + &__tabs [data-openbitfun-part='label'] { // Reserve three full-width characters, excluding tab padding and actions. min-inline-size: 3em; diff --git a/src/web-ui/src/app/components/SceneBar/SceneBar.test.tsx b/src/web-ui/src/app/components/SceneBar/SceneBar.test.tsx index 93d609f651..6816170869 100644 --- a/src/web-ui/src/app/components/SceneBar/SceneBar.test.tsx +++ b/src/web-ui/src/app/components/SceneBar/SceneBar.test.tsx @@ -14,6 +14,7 @@ import { writeSessionTabDrag } from '../../workbench/canvasTabTransfer'; import { clearAgentCanvasForPeerSwitch, switchAgentCanvasScope, useAgentCanvasStore } from '../panels/content-canvas/stores'; import { activateSurface } from '@/infrastructure/peer-device/deviceSurface'; import { useDeviceDirectory } from '@/infrastructure/account/deviceDirectory'; +import { useContextMenuStore } from '@/shared/context-menu-system/store/ContextMenuStore'; globalThis.IS_REACT_ACT_ENVIRONMENT = true; @@ -99,12 +100,16 @@ describe('SceneBar overflow navigation', () => { sceneHarness.closeScene.mockReset(); clearAgentCanvasForPeerSwitch(); useContentResourceStore.setState({ resources: {} }); + useContextMenuStore.getState().reset(); + window.getSelection()?.removeAllRanges(); resetSceneStoreForTest(); }); afterEach(() => { act(() => root.unmount()); container.remove(); + useContextMenuStore.getState().reset(); + window.getSelection()?.removeAllRanges(); activateSurface('local'); vi.restoreAllMocks(); }); @@ -521,4 +526,215 @@ describe('SceneBar overflow navigation', () => { }); expect(sceneHarness.closeScene).toHaveBeenCalledWith('session'); }); + + it('prevents text selection on tabs and device labels in styles', () => { + const barRule = sceneBarStyles.match(/\.openbitfun-scene-bar\s*\{([^}]*)\}/s)?.[1] ?? ''; + const deviceGroupRule = sceneBarStyles.match(/&__device-group\s*\{([^}]*)\}/s)?.[1] ?? ''; + + expect(barRule).toMatch(/-webkit-user-select:\s*none;/); + expect(barRule).toMatch(/user-select:\s*none;/); + expect(deviceGroupRule).toMatch(/cursor:\s*default;/); + expect(deviceGroupRule).toMatch(/-webkit-user-select:\s*none;/); + expect(deviceGroupRule).toMatch(/user-select:\s*none;/); + expect(deviceGroupRule).not.toMatch(/pointer-events:\s*none;/); + }); + + it('clears tab text selection on contextmenu while preserving external selections', () => { + sceneHarness.state.sessionTitle = 'OpenBitFun ACP能力'; + renderSceneBar(); + + const sessionTab = container.querySelector('[role="tab"][data-openbitfun-value="session"]')!; + const labelText = sessionTab.querySelector('[data-openbitfun-part="label"]')?.firstChild; + expect(labelText).not.toBeNull(); + + const selection = window.getSelection()!; + const tabRange = document.createRange(); + tabRange.selectNodeContents(sessionTab.querySelector('[data-openbitfun-part="label"]')!); + selection.removeAllRanges(); + selection.addRange(tabRange); + expect(selection.isCollapsed).toBe(false); + + act(() => { + sessionTab.dispatchEvent(new MouseEvent('contextmenu', { + bubbles: true, + cancelable: true, + clientX: 40, + clientY: 16, + })); + }); + + expect(selection.rangeCount).toBe(0); + expect(useContextMenuStore.getState().visible).toBe(true); + + const external = document.createElement('div'); + external.textContent = 'External transcript text'; + document.body.appendChild(external); + try { + const externalRange = document.createRange(); + externalRange.selectNodeContents(external); + selection.removeAllRanges(); + selection.addRange(externalRange); + expect(selection.toString()).toBe('External transcript text'); + + act(() => { + sessionTab.dispatchEvent(new MouseEvent('contextmenu', { + bubbles: true, + cancelable: true, + clientX: 44, + clientY: 18, + })); + }); + + expect(selection.rangeCount).toBe(1); + expect(selection.toString()).toBe('External transcript text'); + } finally { + selection.removeAllRanges(); + external.remove(); + } + }); + + it('opens a device-group context menu to close all closable tabs under that device', async () => { + const [session, settings, terminal] = sceneHarness.state.openTabs; + session.session = { surfaceId: 'peer-tab-device', workspaceKey: 'workspace-a', sessionId: 'remote' }; + terminal.session = { surfaceId: 'peer-tab-device', workspaceKey: 'workspace-a', sessionId: 'remote-2' }; + settings.session = { surfaceId: 'local', workspaceKey: 'workspace-b', sessionId: 'here' }; + useDeviceDirectory.setState({ + devices: [ + { device_id: 'peer-tab-device', device_name: 'Studio' } as never, + { device_id: 'me', device_name: 'MacBook' } as never, + ], + localId: 'me', + }); + + const originalDefs = sceneHarness.state.tabDefs; + try { + sceneHarness.state.activeTabId = 'settings'; + renderSceneBar(); + const labels = Array.from(container.querySelectorAll('[data-openbitfun-part="tabDevice"]')); + expect(labels.map(label => label.textContent)).toEqual(['Studio', 'MacBook']); + + act(() => { + labels[0].dispatchEvent(new MouseEvent('contextmenu', { + bubbles: true, + cancelable: true, + clientX: 20, + clientY: 12, + })); + }); + + let menu = useContextMenuStore.getState(); + expect(menu.visible).toBe(true); + expect(menu.items).toHaveLength(1); + expect(menu.items[0]).toMatchObject({ + id: 'close-device-tabs', + label: 'sceneBar.closeDeviceTabs', + disabled: false, + }); + + await act(async () => { + menu.items[0].onClick?.(menu.context!); + await Promise.resolve(); + }); + expect(sceneHarness.closeScene.mock.calls.map(call => call[0])).toEqual(['session', 'terminal']); + + sceneHarness.closeScene.mockReset(); + act(() => { + labels[1].dispatchEvent(new MouseEvent('contextmenu', { + bubbles: true, + cancelable: true, + clientX: 220, + clientY: 12, + })); + }); + menu = useContextMenuStore.getState(); + await act(async () => { + menu.items[0].onClick?.(menu.context!); + await Promise.resolve(); + }); + expect(sceneHarness.closeScene.mock.calls.map(call => call[0])).toEqual(['git', 'settings']); + + sceneHarness.closeScene.mockReset(); + sceneHarness.state.tabDefs = originalDefs.map(def => + def.id === 'settings' || def.id === 'git' ? { ...def, closable: false } : def, + ); + renderSceneBar(); + const updatedLabels = Array.from(container.querySelectorAll('[data-openbitfun-part="tabDevice"]')); + act(() => { + updatedLabels[1].dispatchEvent(new MouseEvent('contextmenu', { + bubbles: true, + cancelable: true, + clientX: 220, + clientY: 12, + })); + }); + menu = useContextMenuStore.getState(); + expect(menu.items[0]?.disabled).toBe(true); + + sceneHarness.state.tabDefs = originalDefs.map(def => + def.id === 'settings' ? { ...def, closable: false } : def, + ); + renderSceneBar(); + const partialLabels = Array.from(container.querySelectorAll('[data-openbitfun-part="tabDevice"]')); + act(() => { + partialLabels[1].dispatchEvent(new MouseEvent('contextmenu', { + bubbles: true, + cancelable: true, + clientX: 220, + clientY: 12, + })); + }); + menu = useContextMenuStore.getState(); + expect(menu.items[0]?.disabled).toBe(false); + await act(async () => { + menu.items[0].onClick?.(menu.context!); + await Promise.resolve(); + }); + expect(sceneHarness.closeScene.mock.calls.map(call => call[0])).toEqual(['git']); + } finally { + sceneHarness.state.tabDefs = originalDefs; + act(() => { useDeviceDirectory.setState({ devices: [], localId: null }); }); + } + }); + + it('dismisses the device-group context menu and skips closing when the active surface switches', async () => { + const [session, settings, terminal] = sceneHarness.state.openTabs; + session.session = { surfaceId: 'peer-tab-device', workspaceKey: 'workspace-a', sessionId: 'remote' }; + terminal.session = { surfaceId: 'peer-tab-device', workspaceKey: 'workspace-a', sessionId: 'remote-2' }; + settings.session = { surfaceId: 'local', workspaceKey: 'workspace-b', sessionId: 'here' }; + useDeviceDirectory.setState({ + devices: [ + { device_id: 'peer-tab-device', device_name: 'Studio' } as never, + { device_id: 'me', device_name: 'MacBook' } as never, + ], + localId: 'me', + }); + + try { + renderSceneBar(); + const labels = Array.from(container.querySelectorAll('[data-openbitfun-part="tabDevice"]')); + act(() => { + labels[0].dispatchEvent(new MouseEvent('contextmenu', { + bubbles: true, + cancelable: true, + clientX: 20, + clientY: 12, + })); + }); + const menu = useContextMenuStore.getState(); + expect(menu.visible).toBe(true); + + act(() => { + activateSurface('peer-tab-device'); + }); + expect(useContextMenuStore.getState().visible).toBe(false); + + await act(async () => { + menu.items[0].onClick?.(menu.context!); + await Promise.resolve(); + }); + expect(sceneHarness.closeScene).not.toHaveBeenCalled(); + } finally { + act(() => { useDeviceDirectory.setState({ devices: [], localId: null }); }); + } + }); }); diff --git a/src/web-ui/src/app/components/SceneBar/SceneBar.tsx b/src/web-ui/src/app/components/SceneBar/SceneBar.tsx index 209053f607..9b895015a7 100644 --- a/src/web-ui/src/app/components/SceneBar/SceneBar.tsx +++ b/src/web-ui/src/app/components/SceneBar/SceneBar.tsx @@ -5,7 +5,7 @@ * Session tabs show only the referenced session title. */ -import React, { useCallback, useState, useEffect, useId, useMemo, useSyncExternalStore } from 'react'; +import React, { useCallback, useState, useEffect, useId, useMemo, useRef, useSyncExternalStore } from 'react'; import { Pin, CircleAlert } from 'lucide-react'; import { useSceneStore } from '../../stores/sceneStore'; import { useContextMenuStore } from '@/shared/context-menu-system/store/ContextMenuStore'; @@ -20,13 +20,13 @@ import { isSceneTabClosable } from '../../scenes/registry'; import { useContentResourceStore } from '../../workbench/contentResourceStore'; import { dropSessionTabOnWorkbench, isSessionTabDrag, type WorkbenchTabDropTarget } from '../../workbench/canvasTabTransfer'; import { useAgentCanvasStore } from '../panels/content-canvas/stores'; -import { getActiveSurfaceId, isLocalSurface, onSurfaceActivated } from '@/infrastructure/peer-device/deviceSurface'; +import { getActiveSurfaceId, getActiveSurfaceScope, isLocalSurface, onSurfaceActivated } from '@/infrastructure/peer-device/deviceSurface'; import { resolveDeviceNameFrom, useDeviceDirectory } from '@/infrastructure/account/deviceDirectory'; import { useI18n } from '@/infrastructure/i18n/hooks/useI18n'; import { dropSceneTab, isSceneTabDrag, writeSceneTabDrag, endSceneTabDrag } from '../../workbench/sceneTabTransfer'; import type { WorkbenchPane } from '../../workbench/scenePaneModel'; import { observeTabDragLifecycle } from '../../workbench/tabDragLifecycle'; -import type { SceneTab, SceneTabId } from './types'; +import type { SceneTab, SceneTabDef, SceneTabId } from './types'; import { beginConversationTransfer, endConversationTransfer, isConversationTransfer, dropConversationInWorkbench } from '../../services/conversationDockTransfer'; import './SceneBar.scss'; @@ -37,9 +37,22 @@ function getSceneIdFromTabTarget(target: EventTarget | null): SceneTabId | undef return tab?.dataset.openbitfunValue as SceneTabId | undefined; } +function clearContainedSelection(container: HTMLElement | null): void { + if (!container) return; + const selection = container.ownerDocument.defaultView?.getSelection?.(); + if (!selection || selection.isCollapsed) return; + if ( + (selection.anchorNode && container.contains(selection.anchorNode)) + || (selection.focusNode && container.contains(selection.focusNode)) + ) { + selection.removeAllRanges(); + } +} + interface TabDeviceGroup { /** Position among the groups; keys the group's label element. */ order: number; + surfaceId: string; name: string; /** The rendered device: its scenes, not only its sessions, sit in this group. */ current: boolean; @@ -72,6 +85,7 @@ function useTabDeviceGroups(tabs: readonly SceneTab[]): { const deviceId = isLocalSurface(surfaceId) ? directory.localId : surfaceId; groupStarts.set(group[0].id, { order: groupStarts.size, + surfaceId, name: deviceId ? resolveDeviceNameFrom(directory.devices, deviceId) : surfaceId, current: surfaceId === activeSurfaceId, }); @@ -101,6 +115,8 @@ const SceneBar: React.FC = ({ activateScene, closeScene, } = useSceneManager(pane); + const latestSceneStateRef = useRef({ openTabs, activeTabId, tabDefs }); + latestSceneStateRef.current = { openTabs, activeTabId, tabDefs }; const sessionLabels = useSessionTabLabels(openTabs); const { tabs: shownTabs, groupStarts } = useTabDeviceGroups(openTabs); const groupLabelId = useId(); @@ -169,7 +185,16 @@ const SceneBar: React.FC = ({ setCanvasDrop(null); }; const stopDragListener = observeTabDragLifecycle(offerDrop, clearDrop); - const stopSurfaceListener = onSurfaceActivated(clearDrop); + const stopSurfaceListener = onSurfaceActivated(() => { + clearDrop(); + const menuState = useContextMenuStore.getState(); + if (menuState.visible && menuState.context?.type === ContextType.CUSTOM && ( + menuState.context.customType === 'workbench-tab' + || menuState.context.customType === 'workbench-tab-device-group' + )) { + menuState.hideMenu(); + } + }); return () => { stopDragListener(); stopSurfaceListener(); @@ -217,6 +242,10 @@ const SceneBar: React.FC = ({ const handleContextMenu = (event: React.MouseEvent, id: SceneTabId) => { event.preventDefault(); event.stopPropagation(); + clearContainedSelection( + (event.currentTarget as HTMLElement).closest('[data-openbitfun-component="scene-bar"]') + ?? (event.currentTarget as HTMLElement), + ); const tab = openTabs.find(candidate => candidate.id === id); if (!tab) return; const resource = tab.contentId ? resources[tab.contentId] : undefined; @@ -248,6 +277,56 @@ const SceneBar: React.FC = ({ }); }; + const handleDeviceGroupContextMenu = (event: React.MouseEvent, group: TabDeviceGroup) => { + event.preventDefault(); + event.stopPropagation(); + clearContainedSelection( + event.currentTarget.closest('[data-openbitfun-component="scene-bar"]') + ?? event.currentTarget, + ); + const scope = getActiveSurfaceScope(); + const getClosableDeviceTabs = (tabs: readonly SceneTab[], defs: readonly SceneTabDef[]) => + tabs.filter(candidate => + (candidate.session?.surfaceId ?? scope.surfaceId) === group.surfaceId + && isSceneTabClosable(defs.find(def => def.id === candidate.id)), + ); + const initialClosable = getClosableDeviceTabs(openTabs, tabDefs); + const closeDeviceTabs = async () => { + if (!scope.isCurrent()) return; + const { openTabs: currentTabs, activeTabId: currentActiveId, tabDefs: currentDefs } = latestSceneStateRef.current; + const targets = getClosableDeviceTabs(currentTabs, currentDefs).sort( + (a, b) => Number(a.id === currentActiveId) - Number(b.id === currentActiveId), + ); + for (const target of targets) { + if (!scope.isCurrent()) break; + const trackedInStore = useSceneStore.getState().openTabs.some(candidate => candidate.id === target.id); + await closeScene(target.id); + if (!scope.isCurrent()) break; + if (trackedInStore && useSceneStore.getState().openTabs.some(candidate => candidate.id === target.id)) { + break; + } + } + }; + useContextMenuStore.getState().showMenu( + { x: event.clientX, y: event.clientY }, + [{ + id: 'close-device-tabs', + label: t('sceneBar.closeDeviceTabs'), + disabled: initialClosable.length === 0, + onClick: () => { void closeDeviceTabs(); }, + }], + { + type: ContextType.CUSTOM, + customType: 'workbench-tab-device-group', + data: { surfaceId: group.surfaceId, deviceName: group.name }, + event, + targetElement: event.currentTarget, + position: { x: event.clientX, y: event.clientY }, + timestamp: Date.now(), + }, + ); + }; + // Each tab names its device through the label that opens its group. const tabItems = useMemo(() => { let groupLabel: string | undefined; @@ -302,6 +381,7 @@ const SceneBar: React.FC = ({ data-workbench-pane={pane} data-canvas-drop-state={canAcceptTab ? (activeCanvasDrop ? 'active' : 'available') : undefined} data-canvas-drop-target={activeCanvasDrop ? 'true' : undefined} + onContextMenuCapture={event => clearContainedSelection(event.currentTarget)} onDragOver={event => { if (isConversationTransfer(event.dataTransfer) && !isSceneTabDrag(event.dataTransfer)) { event.preventDefault(); event.dataTransfer.dropEffect = 'move'; return; } if (isSceneTabDrag(event.dataTransfer)) setOfferedSceneTab(true); @@ -393,7 +473,8 @@ const SceneBar: React.FC = ({ id={`${groupLabelId}-${group.order}`} data-current={group.current || undefined} data-first={group.order === 0 || undefined} - data-openbitfun-component="scene-bar" data-openbitfun-part="tabDevice"> + data-openbitfun-component="scene-bar" data-openbitfun-part="tabDevice" + onContextMenu={event => handleDeviceGroupContextMenu(event, group)}> {group.name} {itemNode} diff --git a/src/web-ui/src/app/components/SceneTopBar/SceneTopBar.scss b/src/web-ui/src/app/components/SceneTopBar/SceneTopBar.scss index 3df54f0923..a8c0f7882f 100644 --- a/src/web-ui/src/app/components/SceneTopBar/SceneTopBar.scss +++ b/src/web-ui/src/app/components/SceneTopBar/SceneTopBar.scss @@ -13,6 +13,7 @@ background: var(--openbitfun-color-surface-scene); container-name: scene-top-bar; container-type: inline-size; + -webkit-user-select: none; user-select: none; // Header and body inherit the same resolved/live-drag width from SplitView. diff --git a/src/web-ui/src/app/components/panels/content-canvas/tab-bar/Tab.scss b/src/web-ui/src/app/components/panels/content-canvas/tab-bar/Tab.scss index 123a461eca..1b971d0050 100644 --- a/src/web-ui/src/app/components/panels/content-canvas/tab-bar/Tab.scss +++ b/src/web-ui/src/app/components/panels/content-canvas/tab-bar/Tab.scss @@ -3,6 +3,7 @@ display: flex; min-inline-size: 80px; position: relative; + -webkit-user-select: none; user-select: none; > [data-openbitfun-part='item'] { diff --git a/src/web-ui/src/locales/en-US/common.json b/src/web-ui/src/locales/en-US/common.json index 98258b8ad2..e0eb48977b 100644 --- a/src/web-ui/src/locales/en-US/common.json +++ b/src/web-ui/src/locales/en-US/common.json @@ -1787,6 +1787,7 @@ "scrollPrevious": "Scroll tabs left", "scrollNext": "Scroll tabs right", "closeTab": "Close {{label}}", + "closeDeviceTabs": "Close all tabs for this device", "workspaceUnavailable": "This session's workspace is not open. Reopen its workspace to switch to this session." }, "loading": { diff --git a/src/web-ui/src/locales/zh-CN/common.json b/src/web-ui/src/locales/zh-CN/common.json index 1a41f09ac0..3ea23a0648 100644 --- a/src/web-ui/src/locales/zh-CN/common.json +++ b/src/web-ui/src/locales/zh-CN/common.json @@ -1787,6 +1787,7 @@ "scrollPrevious": "向左滚动标签页", "scrollNext": "向右滚动标签页", "closeTab": "关闭{{label}}", + "closeDeviceTabs": "关闭该设备全部标签页", "workspaceUnavailable": "此会话所属的工作区尚未打开,请先重新打开该工作区,再切换到此会话。" }, "loading": { diff --git a/src/web-ui/src/locales/zh-TW/common.json b/src/web-ui/src/locales/zh-TW/common.json index 0f5e8c570b..a46b61d404 100644 --- a/src/web-ui/src/locales/zh-TW/common.json +++ b/src/web-ui/src/locales/zh-TW/common.json @@ -1787,6 +1787,7 @@ "scrollPrevious": "向左捲動標籤頁", "scrollNext": "向右捲動標籤頁", "closeTab": "關閉{{label}}", + "closeDeviceTabs": "關閉該裝置全部標籤頁", "workspaceUnavailable": "此工作階段所屬的工作區尚未開啟,請先重新開啟該工作區,再切換至此工作階段。" }, "loading": {