@vibe-forge/client 0.11.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.cjs +6 -11
- package/dist/assets/{arc-De_WjPJ3.js → arc-CbOXL0l9.js} +1 -1
- package/dist/assets/{blockDiagram-c4efeb88-C4aR2zTE.js → blockDiagram-c4efeb88-CqxINvsS.js} +1 -1
- package/dist/assets/{c4Diagram-c83219d4-BZH3rq_m.js → c4Diagram-c83219d4-BKazU0hb.js} +1 -1
- package/dist/assets/channel-Dnopc5A6.js +1 -0
- package/dist/assets/{classDiagram-beda092f-BzJgBrIK.js → classDiagram-beda092f-fAFX5BpB.js} +1 -1
- package/dist/assets/{classDiagram-v2-2358418a-5ZtXcnT3.js → classDiagram-v2-2358418a-w1VkNGJj.js} +1 -1
- package/dist/assets/clone-sQthahUA.js +1 -0
- package/dist/assets/{createText-1719965b-DUVvEtmR.js → createText-1719965b-CEinakVP.js} +1 -1
- package/dist/assets/{cssMode-GoTNjuXX.js → cssMode-DPqRki4y.js} +1 -1
- package/dist/assets/{edges-96097737-Dd7m4Cvs.js → edges-96097737-Cb0F1_3K.js} +1 -1
- package/dist/assets/{erDiagram-0228fc6a-DxqFlG_f.js → erDiagram-0228fc6a-C-N2fx-J.js} +1 -1
- package/dist/assets/{flowDb-c6c81e3f-DU0C5kCI.js → flowDb-c6c81e3f-D1Xz_8Gf.js} +1 -1
- package/dist/assets/{flowDiagram-50d868cf-Di1uDa_X.js → flowDiagram-50d868cf-DyPSZyAj.js} +1 -1
- package/dist/assets/flowDiagram-v2-4f6560a1-OazrdWQO.js +1 -0
- package/dist/assets/{flowchart-elk-definition-6af322e1-CwG8aty5.js → flowchart-elk-definition-6af322e1-Dr1DDXwE.js} +1 -1
- package/dist/assets/{freemarker2-j39cqTlI.js → freemarker2-C3DvPFaK.js} +1 -1
- package/dist/assets/{ganttDiagram-a2739b55-baO_lzL-.js → ganttDiagram-a2739b55-DmvY1GRj.js} +1 -1
- package/dist/assets/{gitGraphDiagram-82fe8481-COoHjYMf.js → gitGraphDiagram-82fe8481-CoXfPYYi.js} +1 -1
- package/dist/assets/{graph-KxESr4M5.js → graph-BkDQy7Qt.js} +1 -1
- package/dist/assets/{handlebars-BgjdZO8G.js → handlebars-BcTFdqjl.js} +1 -1
- package/dist/assets/{html-Ba7tYObe.js → html-Dg-O6XFr.js} +1 -1
- package/dist/assets/{htmlMode-Bztvbig1.js → htmlMode-B_wqYWvn.js} +1 -1
- package/dist/assets/{index-5325376f-BMTAx2mL.js → index-5325376f-kxPTR3_e.js} +1 -1
- package/dist/assets/index-o93dlo92.css +32 -0
- package/dist/assets/{index-Pm_kLJvG.js → index-wkhI4dr6.js} +350 -329
- package/dist/assets/{infoDiagram-8eee0895-CC74qbHY.js → infoDiagram-8eee0895-BEvqkwPI.js} +1 -1
- package/dist/assets/{javascript-C1e1cllX.js → javascript-DhlOH8_z.js} +1 -1
- package/dist/assets/{journeyDiagram-c64418c1-C4MyOdE6.js → journeyDiagram-c64418c1-gKtLYmmp.js} +1 -1
- package/dist/assets/{jsonMode-BC98AlvF.js → jsonMode-DxTbF9OD.js} +1 -1
- package/dist/assets/{layout-CxAyTlr7.js → layout-CDaZEk6E.js} +1 -1
- package/dist/assets/{line-DhaUfI71.js → line-DNRQu8iq.js} +1 -1
- package/dist/assets/{linear-MYukzldK.js → linear-Cph9Z6_j.js} +1 -1
- package/dist/assets/{liquid-DahfJEYl.js → liquid-ByZ6JgRG.js} +1 -1
- package/dist/assets/{lspLanguageFeatures-BWDJcswW.js → lspLanguageFeatures-DzvhkgnM.js} +1 -1
- package/dist/assets/{mdx-BELlF_FD.js → mdx-D8RGHTl6.js} +1 -1
- package/dist/assets/{mermaid.core-BrQnSGSY.js → mermaid.core-BgcryF__.js} +4 -4
- package/dist/assets/{mindmap-definition-8da855dc-B0FoxTiy.js → mindmap-definition-8da855dc-WrxK0FcB.js} +1 -1
- package/dist/assets/{pieDiagram-a8764435-Ddr2cjSL.js → pieDiagram-a8764435-VsZBsiQy.js} +1 -1
- package/dist/assets/{python--C9if_AD.js → python-CXVtk_cg.js} +1 -1
- package/dist/assets/{quadrantDiagram-1e28029f-BlEs7Mrl.js → quadrantDiagram-1e28029f-BVlgwOvU.js} +1 -1
- package/dist/assets/{razor-B9U9JxKn.js → razor-0tind7h2.js} +1 -1
- package/dist/assets/{requirementDiagram-08caed73-kEFOAu2v.js → requirementDiagram-08caed73-CpPMPoYp.js} +1 -1
- package/dist/assets/{sankeyDiagram-a04cb91d-BBghez8I.js → sankeyDiagram-a04cb91d-Cm5nnRmc.js} +1 -1
- package/dist/assets/{sequenceDiagram-c5b8d532-CJqgzdUE.js → sequenceDiagram-c5b8d532-DpMlJvJB.js} +1 -1
- package/dist/assets/{stateDiagram-1ecb1508-BER4XEI6.js → stateDiagram-1ecb1508-DU1zc7vq.js} +1 -1
- package/dist/assets/{stateDiagram-v2-c2b004d7-EBV2vSks.js → stateDiagram-v2-c2b004d7-D-0RgmAp.js} +1 -1
- package/dist/assets/{styles-b4e223ce-k0eswZsE.js → styles-b4e223ce-BSO-yNWV.js} +1 -1
- package/dist/assets/{styles-ca3715f6-Ckr7GA-0.js → styles-ca3715f6-CHnsn2Ro.js} +1 -1
- package/dist/assets/{styles-d45a18b0-C1bpSwV3.js → styles-d45a18b0-B-rVGjEq.js} +1 -1
- package/dist/assets/{svgDrawCommon-b86b1483-CDtKpGvy.js → svgDrawCommon-b86b1483-CA3Pl89f.js} +1 -1
- package/dist/assets/{timeline-definition-faaaa080-BeGR-vua.js → timeline-definition-faaaa080-BcihLR6s.js} +1 -1
- package/dist/assets/{tsMode-D_gJXIy3.js → tsMode-D9GGa5Ur.js} +1 -1
- package/dist/assets/{typescript-BoKcNXkN.js → typescript-BT9CK_EL.js} +1 -1
- package/dist/assets/{xml-DZvURlJ-.js → xml-DNO75J-T.js} +1 -1
- package/dist/assets/{xychartDiagram-f5964ef8-DxfeLuYV.js → xychartDiagram-f5964ef8-DJTwe32X.js} +1 -1
- package/dist/assets/{yaml-CTC8PAGY.js → yaml-7CVzhiP2.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +13 -10
- package/src/api/git.ts +12 -0
- package/src/api/sessions.ts +131 -4
- package/src/api/types.ts +2 -1
- package/src/api.ts +13 -0
- package/src/components/ArchiveView.scss +143 -54
- package/src/components/ArchiveView.tsx +181 -167
- package/src/components/CodeBlock.scss +5 -0
- package/src/components/ConfigView.scss +142 -31
- package/src/components/ConfigView.tsx +161 -86
- package/src/components/MarkdownContent.tsx +7 -0
- package/src/components/NavRail.scss +248 -0
- package/src/components/NavRail.tsx +80 -107
- package/src/components/NavRailCompact.tsx +107 -0
- package/src/components/NavRailCompactMoreSheet.tsx +141 -0
- package/src/components/ShortcutTooltip.tsx +4 -2
- package/src/components/Sidebar.scss +51 -0
- package/src/components/Sidebar.tsx +43 -16
- package/src/components/automation-view/RuleFormPanel.scss +40 -13
- package/src/components/automation-view/RuleSidebar.scss +73 -47
- package/src/components/automation-view/RuleSidebar.tsx +9 -13
- package/src/components/automation-view/RunHistoryPanel.scss +141 -13
- package/src/components/automation-view/RunHistoryPanel.tsx +203 -161
- package/src/components/automation-view/TaskList.scss +44 -13
- package/src/components/automation-view/TriggerList.scss +46 -14
- package/src/components/automation-view/index.scss +82 -10
- package/src/components/automation-view/index.tsx +108 -55
- package/src/components/benchmark-view/BenchmarkCasePanel.scss +36 -16
- package/src/components/benchmark-view/BenchmarkSidebar.scss +44 -22
- package/src/components/benchmark-view/BenchmarkSidebar.tsx +0 -6
- package/src/components/benchmark-view/BenchmarkView.scss +63 -20
- package/src/components/benchmark-view/index.tsx +71 -34
- package/src/components/chat/AGENTS.md +14 -2
- package/src/components/chat/ChatComposerCard.scss +77 -0
- package/src/components/chat/ChatComposerCard.tsx +59 -0
- package/src/components/chat/ChatHeader.scss +187 -0
- package/src/components/chat/ChatHeader.tsx +209 -57
- package/src/components/chat/ChatHistoryView.tsx +279 -52
- package/src/components/chat/ChatTimelineView.scss +94 -1
- package/src/components/chat/ChatTimelineView.tsx +42 -0
- package/src/components/chat/CurrentTodoList.scss +210 -200
- package/src/components/chat/CurrentTodoList.tsx +116 -48
- package/src/components/chat/NewSessionGuide.scss +139 -1
- package/src/components/chat/NewSessionGuide.tsx +57 -100
- package/src/components/chat/NewSessionGuideCompactPanel.tsx +130 -0
- package/src/components/chat/NewSessionGuideGrid.tsx +141 -0
- package/src/components/chat/QueuedMessagesCard.scss +195 -0
- package/src/components/chat/QueuedMessagesCard.tsx +170 -0
- package/src/components/chat/git-controls/BranchSwitcherDropdown.tsx +61 -56
- package/src/components/chat/git-controls/BranchSwitcherResults.tsx +167 -0
- package/src/components/chat/git-controls/BranchTreeEntries.tsx +99 -0
- package/src/components/chat/git-controls/ChatGitControls.scss +437 -5
- package/src/components/chat/git-controls/ChatGitControls.tsx +136 -109
- package/src/components/chat/git-controls/DraftGitControls.tsx +91 -0
- package/src/components/chat/git-controls/GitOperationsDropdown.tsx +10 -2
- package/src/components/chat/git-controls/GitWorktreeDropdown.tsx +301 -28
- package/src/components/chat/git-controls/git-branch-tree.ts +148 -0
- package/src/components/chat/git-controls/use-chat-draft-git-controls.ts +168 -0
- package/src/components/chat/git-controls/use-chat-git-controls.ts +76 -3
- package/src/components/chat/messages/MessageContextMenu.tsx +3 -1
- package/src/components/chat/messages/MessageItem.scss +78 -4
- package/src/components/chat/messages/MessageItem.tsx +47 -3
- package/src/components/chat/sender/@components/adapter-select/AdapterSelectControl.scss +23 -0
- package/src/components/chat/sender/@components/reference-actions/ReferenceActionsControl.scss +17 -0
- package/src/components/chat/sender/@components/reference-actions/ReferencePermissionActionsPopover.tsx +4 -1
- package/src/components/chat/sender/@components/sender-attachments/SenderAttachments.scss +167 -30
- package/src/components/chat/sender/@components/sender-attachments/SenderAttachments.tsx +95 -23
- package/src/components/chat/sender/@components/sender-body/SenderBody.tsx +10 -0
- package/src/components/chat/sender/@components/sender-interaction-panel/SenderInteractionPanel.scss +161 -45
- package/src/components/chat/sender/@components/sender-interaction-panel/SenderInteractionPanel.tsx +310 -71
- package/src/components/chat/sender/@components/sender-monaco-editor/SenderMonacoEditor.tsx +18 -0
- package/src/components/chat/sender/@components/sender-monaco-editor/use-sender-monaco-editor.ts +86 -9
- package/src/components/chat/sender/@components/sender-monaco-editor/use-sender-monaco-theme.ts +52 -3
- package/src/components/chat/sender/@components/sender-submit-action/SenderSubmitAction.scss +110 -1
- package/src/components/chat/sender/@components/sender-submit-action/SenderSubmitAction.tsx +137 -17
- package/src/components/chat/sender/@components/sender-toolbar/SenderSelectBase.scss +21 -0
- package/src/components/chat/sender/@components/sender-toolbar/SenderSelectShared.scss +21 -0
- package/src/components/chat/sender/@components/sender-toolbar/SenderToolbar.scss +63 -0
- package/src/components/chat/sender/@components/sender-toolbar/SenderToolbar.tsx +12 -6
- package/src/components/chat/sender/@core/build-sender-controller-result.ts +6 -0
- package/src/components/chat/sender/@core/build-sender-toolbar.ts +25 -2
- package/src/components/chat/sender/@core/create-sender-toolbar-handlers.ts +9 -2
- package/src/components/chat/sender/@core/get-sender-runtime-state.ts +1 -1
- package/src/components/chat/sender/@core/interaction-request.ts +2 -2
- package/src/components/chat/sender/@core/sender-toolbar-bindings.ts +28 -4
- package/src/components/chat/sender/@hooks/use-model-select-browser.tsx +4 -2
- package/src/components/chat/sender/@hooks/use-sender-controller.ts +56 -11
- package/src/components/chat/sender/@hooks/use-sender-keydown.ts +64 -0
- package/src/components/chat/sender/@hooks/use-sender-shortcuts.ts +16 -1
- package/src/components/chat/sender/@hooks/use-sender-submit.ts +16 -8
- package/src/components/chat/sender/@types/sender-props.ts +20 -3
- package/src/components/chat/sender/@types/sender-toolbar-types.ts +12 -1
- package/src/components/chat/sender/Sender.scss +4 -1
- package/src/components/chat/sender/Sender.tsx +3 -12
- package/src/components/chat/session-timeline-panel/EventList.scss +88 -0
- package/src/components/chat/session-timeline-panel/EventList.tsx +99 -47
- package/src/components/chat/session-timeline-panel/gantt.ts +23 -7
- package/src/components/chat/session-timeline-panel/git-graph.ts +6 -1
- package/src/components/chat/session-timeline-panel/index.scss +14 -1
- package/src/components/chat/session-timeline-panel/index.tsx +86 -10
- package/src/components/chat/session-timeline-panel/types.ts +4 -0
- package/src/components/chat/status-bar/ChatStatusBar.scss +27 -0
- package/src/components/chat/status-bar/ChatStatusBar.tsx +39 -0
- package/src/components/chat/terminal/ChatTerminalView.tsx +6 -0
- package/src/components/chat/tools/core/ToolCallBox.scss +19 -0
- package/src/components/chat/tools/core/ToolGroup.scss +32 -0
- package/src/components/chat/tools/task/components/TaskToolCard.scss +59 -1
- package/src/components/config/ConfigEditors.scss +20 -6
- package/src/components/config/ConfigFieldRow.scss +57 -17
- package/src/components/config/ConfigSectionForm.scss +10 -4
- package/src/components/config/ConfigSectionPanel.tsx +18 -11
- package/src/components/config/configSchema.ts +1 -0
- package/src/components/config/record-editors/RecordEditors.scss +42 -9
- package/src/components/dock-panel/DockPanel.scss +6 -2
- package/src/components/dock-panel/DockPanel.tsx +12 -16
- package/src/components/knowledge-base/KnowledgeBaseView.scss +180 -6
- package/src/components/knowledge-base/KnowledgeBaseView.tsx +98 -26
- package/src/components/knowledge-base/components/ActionButton.scss +4 -0
- package/src/components/knowledge-base/components/EmptyState.scss +5 -8
- package/src/components/knowledge-base/components/EntitiesTab.tsx +8 -2
- package/src/components/knowledge-base/components/EntityItem.scss +10 -3
- package/src/components/knowledge-base/components/FilterBar.scss +13 -2
- package/src/components/knowledge-base/components/FlowsTab.tsx +8 -2
- package/src/components/knowledge-base/components/KnowledgeBaseHeader.scss +2 -23
- package/src/components/knowledge-base/components/KnowledgeBaseHeader.tsx +0 -5
- package/src/components/knowledge-base/components/KnowledgeList.scss +15 -6
- package/src/components/knowledge-base/components/LoadingState.scss +4 -0
- package/src/components/knowledge-base/components/RuleItem.scss +86 -0
- package/src/components/knowledge-base/components/RuleItem.tsx +2 -0
- package/src/components/knowledge-base/components/RulesTab.tsx +8 -2
- package/src/components/knowledge-base/components/SectionHeader.scss +3 -18
- package/src/components/knowledge-base/components/SectionHeader.tsx +3 -7
- package/src/components/knowledge-base/components/SkillsTab.tsx +8 -3
- package/src/components/knowledge-base/components/SpecItem.scss +16 -7
- package/src/components/layout/@hooks/use-mobile-sidebar-modal.ts +190 -0
- package/src/components/layout/AppShell.scss +106 -6
- package/src/components/layout/AppShell.tsx +118 -10
- package/src/components/layout/PageShell.scss +41 -0
- package/src/components/layout/PageShell.tsx +32 -0
- package/src/components/layout/mobile-sidebar-constants.ts +1 -0
- package/src/components/nav-rail-compact-config.ts +114 -0
- package/src/components/nav-rail-items.tsx +181 -0
- package/src/components/sidebar/SessionContextMenu.tsx +3 -1
- package/src/components/sidebar/SessionItem.scss +62 -0
- package/src/components/sidebar/SessionItem.tsx +97 -52
- package/src/components/sidebar/SessionList.tsx +6 -0
- package/src/components/sidebar/SidebarHeader.scss +49 -0
- package/src/components/sidebar/SidebarHeader.tsx +27 -5
- package/src/components/sidebar/SidebarHeaderBatchActions.tsx +8 -4
- package/src/components/sidebar/SidebarHeaderSearchActions.tsx +6 -3
- package/src/components/sidebar/SidebarUtilityFooter.tsx +69 -0
- package/src/components/workspace/ContextFilePicker.tsx +12 -4
- package/src/hooks/chat/chat-session-workspace-draft.ts +25 -0
- package/src/hooks/chat/session-view-cache.ts +4 -1
- package/src/hooks/chat/use-chat-adapter.ts +5 -1
- package/src/hooks/chat/use-chat-model-adapter-selection.tsx +5 -1
- package/src/hooks/chat/use-chat-scroll.ts +24 -7
- package/src/hooks/chat/use-chat-session-actions.ts +118 -6
- package/src/hooks/chat/use-chat-session-messages.ts +20 -1
- package/src/hooks/chat/use-chat-session.ts +2 -0
- package/src/hooks/use-responsive-layout.ts +115 -0
- package/src/main.tsx +8 -0
- package/src/resources/adapters.ts +15 -0
- package/src/resources/locales/en.json +84 -1
- package/src/resources/locales/zh.json +84 -1
- package/src/routes/ChatRoute.scss +152 -9
- package/src/routes/ChatRoute.tsx +31 -34
- package/src/store/index.ts +2 -0
- package/dist/assets/channel-BvERb8WU.js +0 -1
- package/dist/assets/clone-B9_0v-6Y.js +0 -1
- package/dist/assets/flowDiagram-v2-4f6560a1-LpS8Kb00.js +0 -1
- package/dist/assets/index-C1oh0w9H.css +0 -32
- package/src/components/chat/ThinkingStatus.scss +0 -70
- package/src/components/chat/ThinkingStatus.tsx +0 -13
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import './AppShell.scss'
|
|
2
2
|
|
|
3
3
|
import { Layout } from 'antd'
|
|
4
|
-
import { useSetAtom } from 'jotai'
|
|
5
|
-
import { useEffect } from 'react'
|
|
4
|
+
import { useAtom, useSetAtom } from 'jotai'
|
|
5
|
+
import { useEffect, useMemo, useRef } from 'react'
|
|
6
6
|
import type { PropsWithChildren } from 'react'
|
|
7
|
+
import { useTranslation } from 'react-i18next'
|
|
8
|
+
import { useLocation } from 'react-router-dom'
|
|
7
9
|
|
|
8
10
|
import type { Session } from '@vibe-forge/core'
|
|
9
11
|
|
|
10
12
|
import { NavRail } from '#~/components/NavRail'
|
|
11
13
|
import { Sidebar } from '#~/components/Sidebar'
|
|
14
|
+
import { useResponsiveLayout } from '#~/hooks/use-responsive-layout'
|
|
12
15
|
import { useSidebarQueryState } from '#~/hooks/use-sidebar-query-state'
|
|
13
|
-
import { isSidebarCollapsedAtom } from '#~/store/index'
|
|
16
|
+
import { isMobileSidebarOpenAtom, isSidebarCollapsedAtom } from '#~/store/index'
|
|
17
|
+
import { useMobileSidebarModal } from './@hooks/use-mobile-sidebar-modal'
|
|
18
|
+
import { MOBILE_SIDEBAR_DIALOG_ID } from './mobile-sidebar-constants'
|
|
14
19
|
|
|
15
20
|
type AppShellProps = PropsWithChildren<{
|
|
16
21
|
activeSessionId?: string
|
|
@@ -30,12 +35,119 @@ export function AppShell({
|
|
|
30
35
|
showSidebar,
|
|
31
36
|
sidebarWidth
|
|
32
37
|
}: AppShellProps) {
|
|
38
|
+
const { t } = useTranslation()
|
|
33
39
|
const { isSidebarCollapsed } = useSidebarQueryState()
|
|
40
|
+
const location = useLocation()
|
|
41
|
+
const { isCompactLayout } = useResponsiveLayout()
|
|
42
|
+
const [isMobileSidebarOpen, setIsMobileSidebarOpen] = useAtom(isMobileSidebarOpenAtom)
|
|
34
43
|
const setIsSidebarCollapsed = useSetAtom(isSidebarCollapsedAtom)
|
|
44
|
+
const isDesktopSidebarCollapsed = !isCompactLayout && isSidebarCollapsed
|
|
45
|
+
const contentRegionRef = useRef<HTMLDivElement | null>(null)
|
|
46
|
+
const mobileNavRegionRef = useRef<HTMLDivElement | null>(null)
|
|
47
|
+
const mobileSidebarSheetRef = useRef<HTMLDivElement | null>(null)
|
|
48
|
+
const mobileSidebarBackgroundRefs = useMemo(
|
|
49
|
+
() => [contentRegionRef, mobileNavRegionRef],
|
|
50
|
+
[]
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
useEffect(() => {
|
|
54
|
+
setIsSidebarCollapsed(isCompactLayout ? false : isSidebarCollapsed)
|
|
55
|
+
}, [isCompactLayout, isSidebarCollapsed, setIsSidebarCollapsed])
|
|
56
|
+
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
setIsMobileSidebarOpen(false)
|
|
59
|
+
}, [isCompactLayout, location.pathname, setIsMobileSidebarOpen])
|
|
35
60
|
|
|
36
61
|
useEffect(() => {
|
|
37
|
-
|
|
38
|
-
|
|
62
|
+
if (!isCompactLayout || showSidebar) {
|
|
63
|
+
return
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
setIsMobileSidebarOpen(false)
|
|
67
|
+
}, [isCompactLayout, setIsMobileSidebarOpen, showSidebar])
|
|
68
|
+
|
|
69
|
+
useMobileSidebarModal({
|
|
70
|
+
backgroundRefs: mobileSidebarBackgroundRefs,
|
|
71
|
+
isCompactLayout,
|
|
72
|
+
isMobileSidebarOpen,
|
|
73
|
+
setIsMobileSidebarOpen,
|
|
74
|
+
sheetRef: mobileSidebarSheetRef
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
const resolvedSidebarWidth = isCompactLayout ? Math.min(sidebarWidth, 320) : sidebarWidth
|
|
78
|
+
const contentClassName = [
|
|
79
|
+
'app-shell__content',
|
|
80
|
+
showSidebar ? 'app-shell__content--session' : '',
|
|
81
|
+
isDesktopSidebarCollapsed ? 'is-sidebar-collapsed' : '',
|
|
82
|
+
showSidebar ? '' : 'is-flat'
|
|
83
|
+
].filter(Boolean).join(' ')
|
|
84
|
+
const content = (
|
|
85
|
+
<div
|
|
86
|
+
ref={contentRegionRef}
|
|
87
|
+
className='app-shell__content-region'
|
|
88
|
+
aria-hidden={isCompactLayout && isMobileSidebarOpen ? true : undefined}
|
|
89
|
+
>
|
|
90
|
+
<Layout.Content className={contentClassName}>
|
|
91
|
+
{children}
|
|
92
|
+
</Layout.Content>
|
|
93
|
+
</div>
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
if (isCompactLayout) {
|
|
97
|
+
return (
|
|
98
|
+
<Layout className={`app-shell app-shell--compact ${isDarkMode ? 'app-shell--dark' : ''}`}>
|
|
99
|
+
{content}
|
|
100
|
+
|
|
101
|
+
{showSidebar && (
|
|
102
|
+
<>
|
|
103
|
+
<button
|
|
104
|
+
type='button'
|
|
105
|
+
className={`app-shell__mobile-sidebar-backdrop ${isMobileSidebarOpen ? 'is-open' : ''}`}
|
|
106
|
+
aria-label={t('common.close')}
|
|
107
|
+
aria-hidden={!isMobileSidebarOpen}
|
|
108
|
+
tabIndex={-1}
|
|
109
|
+
onClick={() => setIsMobileSidebarOpen(false)}
|
|
110
|
+
/>
|
|
111
|
+
<div
|
|
112
|
+
ref={mobileSidebarSheetRef}
|
|
113
|
+
id={MOBILE_SIDEBAR_DIALOG_ID}
|
|
114
|
+
className={`app-shell__mobile-sidebar-sheet ${isMobileSidebarOpen ? 'is-open' : ''}`}
|
|
115
|
+
role='dialog'
|
|
116
|
+
aria-modal={isMobileSidebarOpen ? 'true' : undefined}
|
|
117
|
+
aria-label={t('common.sessions')}
|
|
118
|
+
aria-hidden={!isMobileSidebarOpen}
|
|
119
|
+
tabIndex={-1}
|
|
120
|
+
>
|
|
121
|
+
<Sidebar
|
|
122
|
+
width={resolvedSidebarWidth}
|
|
123
|
+
activeId={activeSessionId}
|
|
124
|
+
onSelectSession={(session, isNew) => {
|
|
125
|
+
setIsMobileSidebarOpen(false)
|
|
126
|
+
onSelectSession(session, isNew)
|
|
127
|
+
}}
|
|
128
|
+
onDeletedSession={(deletedId, nextId) => {
|
|
129
|
+
setIsMobileSidebarOpen(false)
|
|
130
|
+
onDeletedSession(deletedId, nextId)
|
|
131
|
+
}}
|
|
132
|
+
isCompactLayout
|
|
133
|
+
isMobileOpen={isMobileSidebarOpen}
|
|
134
|
+
onRequestClose={() => setIsMobileSidebarOpen(false)}
|
|
135
|
+
/>
|
|
136
|
+
</div>
|
|
137
|
+
</>
|
|
138
|
+
)}
|
|
139
|
+
|
|
140
|
+
<div ref={mobileNavRegionRef}>
|
|
141
|
+
<NavRail
|
|
142
|
+
isCompactLayout
|
|
143
|
+
ariaHidden={isMobileSidebarOpen}
|
|
144
|
+
showSidebar={showSidebar}
|
|
145
|
+
onOpenSidebar={() => setIsMobileSidebarOpen(true)}
|
|
146
|
+
/>
|
|
147
|
+
</div>
|
|
148
|
+
</Layout>
|
|
149
|
+
)
|
|
150
|
+
}
|
|
39
151
|
|
|
40
152
|
return (
|
|
41
153
|
<Layout className={`app-shell ${isDarkMode ? 'app-shell--dark' : ''}`}>
|
|
@@ -50,11 +162,7 @@ export function AppShell({
|
|
|
50
162
|
/>
|
|
51
163
|
)}
|
|
52
164
|
</div>
|
|
53
|
-
|
|
54
|
-
className={`app-shell__content ${isSidebarCollapsed ? 'is-sidebar-collapsed' : ''}`}
|
|
55
|
-
>
|
|
56
|
-
{children}
|
|
57
|
-
</Layout.Content>
|
|
165
|
+
{content}
|
|
58
166
|
</Layout>
|
|
59
167
|
)
|
|
60
168
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
.page-shell {
|
|
2
|
+
height: 100%;
|
|
3
|
+
min-height: 0;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
padding: 0;
|
|
7
|
+
background: var(--sub-bg-color);
|
|
8
|
+
--subpage-secondary-panel-width: 300px;
|
|
9
|
+
--subpage-content-card-gap: 12px;
|
|
10
|
+
--subpage-content-card-radius: 12px;
|
|
11
|
+
--subpage-content-card-bg: var(--bg-color);
|
|
12
|
+
--subpage-tertiary-padding: 8px;
|
|
13
|
+
--subpage-tertiary-gap: 8px;
|
|
14
|
+
--subpage-tertiary-radius: 8px;
|
|
15
|
+
--subpage-tertiary-border: 1px solid var(--border-color);
|
|
16
|
+
--subpage-tertiary-bg: var(--bg-color);
|
|
17
|
+
--subpage-tertiary-hover-bg: var(--sidebar-hover-bg, #e5e5e5);
|
|
18
|
+
--subpage-tertiary-hover-border: var(--sidebar-hover-bg, #e5e5e5);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.page-shell__header {
|
|
22
|
+
flex-shrink: 0;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
gap: 6px;
|
|
26
|
+
padding: 10px 12px 8px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.page-shell__body {
|
|
30
|
+
flex: 1;
|
|
31
|
+
min-height: 0;
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@media (max-width: 720px) {
|
|
38
|
+
.page-shell {
|
|
39
|
+
padding: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import './PageShell.scss'
|
|
2
|
+
|
|
3
|
+
import type { PropsWithChildren, ReactNode } from 'react'
|
|
4
|
+
|
|
5
|
+
type PageShellProps = PropsWithChildren<{
|
|
6
|
+
bodyClassName?: string
|
|
7
|
+
className?: string
|
|
8
|
+
header?: ReactNode
|
|
9
|
+
}>
|
|
10
|
+
|
|
11
|
+
export function PageShell({
|
|
12
|
+
bodyClassName,
|
|
13
|
+
children,
|
|
14
|
+
className,
|
|
15
|
+
header
|
|
16
|
+
}: PageShellProps) {
|
|
17
|
+
const rootClassName = ['page-shell', className].filter(Boolean).join(' ')
|
|
18
|
+
const bodyClasses = ['page-shell__body', bodyClassName].filter(Boolean).join(' ')
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<div className={rootClassName}>
|
|
22
|
+
{header != null && (
|
|
23
|
+
<div className='page-shell__header'>
|
|
24
|
+
{header}
|
|
25
|
+
</div>
|
|
26
|
+
)}
|
|
27
|
+
<div className={bodyClasses}>
|
|
28
|
+
{children}
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
)
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const MOBILE_SIDEBAR_DIALOG_ID = 'mobile-sidebar-dialog'
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { TFunction } from 'i18next'
|
|
2
|
+
import type { NavigateFunction } from 'react-router-dom'
|
|
3
|
+
|
|
4
|
+
import type { ThemeMode } from '#~/store'
|
|
5
|
+
|
|
6
|
+
import type { NavRailCompactChoiceAction, NavRailCompactMoreAction } from './NavRailCompact'
|
|
7
|
+
|
|
8
|
+
export function buildCompactMoreActions({
|
|
9
|
+
currentPath,
|
|
10
|
+
navigate,
|
|
11
|
+
onOpenSidebar,
|
|
12
|
+
showSidebar,
|
|
13
|
+
t
|
|
14
|
+
}: {
|
|
15
|
+
currentPath: string
|
|
16
|
+
navigate: NavigateFunction
|
|
17
|
+
onOpenSidebar?: () => void
|
|
18
|
+
showSidebar: boolean
|
|
19
|
+
t: TFunction
|
|
20
|
+
}): NavRailCompactMoreAction[] {
|
|
21
|
+
const actions: NavRailCompactMoreAction[] = []
|
|
22
|
+
|
|
23
|
+
if (showSidebar && onOpenSidebar != null) {
|
|
24
|
+
actions.push({
|
|
25
|
+
active: currentPath === '/' || currentPath.startsWith('/session/'),
|
|
26
|
+
icon: 'menu',
|
|
27
|
+
key: 'sessions',
|
|
28
|
+
label: t('common.sessions'),
|
|
29
|
+
onSelect: onOpenSidebar
|
|
30
|
+
})
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
actions.push({
|
|
34
|
+
active: currentPath === '/config',
|
|
35
|
+
icon: 'settings',
|
|
36
|
+
key: 'settings',
|
|
37
|
+
label: t('common.settings'),
|
|
38
|
+
onSelect: () => {
|
|
39
|
+
void navigate('/config')
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
return actions
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function buildCompactThemeActions({
|
|
47
|
+
setThemeMode,
|
|
48
|
+
t,
|
|
49
|
+
themeMode
|
|
50
|
+
}: {
|
|
51
|
+
setThemeMode: (value: ThemeMode) => void
|
|
52
|
+
t: TFunction
|
|
53
|
+
themeMode: ThemeMode
|
|
54
|
+
}): NavRailCompactChoiceAction[] {
|
|
55
|
+
return [
|
|
56
|
+
{
|
|
57
|
+
active: themeMode === 'light',
|
|
58
|
+
icon: 'light_mode',
|
|
59
|
+
key: 'light',
|
|
60
|
+
label: t('common.themeLight'),
|
|
61
|
+
onSelect: () => {
|
|
62
|
+
setThemeMode('light')
|
|
63
|
+
localStorage.setItem('theme', 'light')
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
active: themeMode === 'dark',
|
|
68
|
+
icon: 'dark_mode',
|
|
69
|
+
key: 'dark',
|
|
70
|
+
label: t('common.themeDark'),
|
|
71
|
+
onSelect: () => {
|
|
72
|
+
setThemeMode('dark')
|
|
73
|
+
localStorage.setItem('theme', 'dark')
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
active: themeMode === 'system',
|
|
78
|
+
icon: 'desktop_windows',
|
|
79
|
+
key: 'system',
|
|
80
|
+
label: t('common.themeSystem'),
|
|
81
|
+
onSelect: () => {
|
|
82
|
+
setThemeMode('system')
|
|
83
|
+
localStorage.setItem('theme', 'system')
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function buildCompactLanguageActions({
|
|
90
|
+
currentLanguage,
|
|
91
|
+
onChangeLanguage
|
|
92
|
+
}: {
|
|
93
|
+
currentLanguage: string
|
|
94
|
+
onChangeLanguage: (language: string) => void
|
|
95
|
+
}): NavRailCompactChoiceAction[] {
|
|
96
|
+
return [
|
|
97
|
+
{
|
|
98
|
+
active: currentLanguage.startsWith('zh'),
|
|
99
|
+
key: 'zh',
|
|
100
|
+
label: '简体中文',
|
|
101
|
+
onSelect: () => {
|
|
102
|
+
onChangeLanguage('zh')
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
active: currentLanguage.startsWith('en'),
|
|
107
|
+
key: 'en',
|
|
108
|
+
label: 'English',
|
|
109
|
+
onSelect: () => {
|
|
110
|
+
onChangeLanguage('en')
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import type { MenuProps } from 'antd'
|
|
2
|
+
import type { TFunction } from 'i18next'
|
|
3
|
+
import type { NavigateFunction } from 'react-router-dom'
|
|
4
|
+
|
|
5
|
+
import type { ThemeMode } from '#~/store'
|
|
6
|
+
|
|
7
|
+
export interface NavRailItem {
|
|
8
|
+
active: boolean
|
|
9
|
+
icon: string
|
|
10
|
+
key: string
|
|
11
|
+
label: string
|
|
12
|
+
path: string
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function buildLanguageItems({
|
|
16
|
+
currentLanguage,
|
|
17
|
+
onChangeLanguage
|
|
18
|
+
}: {
|
|
19
|
+
currentLanguage: string
|
|
20
|
+
onChangeLanguage: (language: string) => unknown
|
|
21
|
+
}): MenuProps['items'] {
|
|
22
|
+
return [
|
|
23
|
+
{
|
|
24
|
+
key: 'zh',
|
|
25
|
+
label: '简体中文',
|
|
26
|
+
icon: currentLanguage.startsWith('zh')
|
|
27
|
+
? (
|
|
28
|
+
<span className='material-symbols-rounded nav-menu-icon active'>check</span>
|
|
29
|
+
)
|
|
30
|
+
: <div className='nav-menu-icon-placeholder' />,
|
|
31
|
+
onClick: () => {
|
|
32
|
+
void onChangeLanguage('zh')
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
key: 'en',
|
|
37
|
+
label: 'English',
|
|
38
|
+
icon: currentLanguage.startsWith('en')
|
|
39
|
+
? (
|
|
40
|
+
<span className='material-symbols-rounded nav-menu-icon active'>check</span>
|
|
41
|
+
)
|
|
42
|
+
: <div className='nav-menu-icon-placeholder' />,
|
|
43
|
+
onClick: () => {
|
|
44
|
+
void onChangeLanguage('en')
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function buildThemeItems({
|
|
51
|
+
setThemeMode,
|
|
52
|
+
t,
|
|
53
|
+
themeMode
|
|
54
|
+
}: {
|
|
55
|
+
setThemeMode: (themeMode: ThemeMode) => void
|
|
56
|
+
t: TFunction
|
|
57
|
+
themeMode: ThemeMode
|
|
58
|
+
}): MenuProps['items'] {
|
|
59
|
+
return [
|
|
60
|
+
{
|
|
61
|
+
key: 'light',
|
|
62
|
+
label: t('common.themeLight'),
|
|
63
|
+
icon: themeMode === 'light'
|
|
64
|
+
? <span className='material-symbols-rounded nav-menu-icon active'>check</span>
|
|
65
|
+
: <span className='material-symbols-rounded nav-menu-icon'>light_mode</span>,
|
|
66
|
+
onClick: () => {
|
|
67
|
+
setThemeMode('light')
|
|
68
|
+
localStorage.setItem('theme', 'light')
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
key: 'dark',
|
|
73
|
+
label: t('common.themeDark'),
|
|
74
|
+
icon: themeMode === 'dark'
|
|
75
|
+
? <span className='material-symbols-rounded nav-menu-icon active'>check</span>
|
|
76
|
+
: <span className='material-symbols-rounded nav-menu-icon'>dark_mode</span>,
|
|
77
|
+
onClick: () => {
|
|
78
|
+
setThemeMode('dark')
|
|
79
|
+
localStorage.setItem('theme', 'dark')
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
key: 'system',
|
|
84
|
+
label: t('common.themeSystem'),
|
|
85
|
+
icon: themeMode === 'system'
|
|
86
|
+
? <span className='material-symbols-rounded nav-menu-icon active'>check</span>
|
|
87
|
+
: <span className='material-symbols-rounded nav-menu-icon'>desktop_windows</span>,
|
|
88
|
+
onClick: () => {
|
|
89
|
+
setThemeMode('system')
|
|
90
|
+
localStorage.setItem('theme', 'system')
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function buildNavItems({
|
|
97
|
+
currentPath,
|
|
98
|
+
t
|
|
99
|
+
}: {
|
|
100
|
+
currentPath: string
|
|
101
|
+
t: TFunction
|
|
102
|
+
}): NavRailItem[] {
|
|
103
|
+
return [
|
|
104
|
+
{
|
|
105
|
+
key: 'sessions',
|
|
106
|
+
icon: 'chat_bubble',
|
|
107
|
+
label: t('common.sessions'),
|
|
108
|
+
path: '/',
|
|
109
|
+
active: currentPath === '/' || currentPath.startsWith('/session/')
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
key: 'knowledge',
|
|
113
|
+
icon: 'library_books',
|
|
114
|
+
label: t('common.knowledgeBase'),
|
|
115
|
+
path: '/knowledge',
|
|
116
|
+
active: currentPath === '/knowledge'
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
key: 'automation',
|
|
120
|
+
icon: 'schedule',
|
|
121
|
+
label: t('common.automation'),
|
|
122
|
+
path: '/automation',
|
|
123
|
+
active: currentPath === '/automation'
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
key: 'benchmark',
|
|
127
|
+
icon: 'speed',
|
|
128
|
+
label: t('common.benchmark'),
|
|
129
|
+
path: '/benchmark',
|
|
130
|
+
active: currentPath === '/benchmark'
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
key: 'archive',
|
|
134
|
+
icon: 'archive',
|
|
135
|
+
label: t('common.archivedSessions'),
|
|
136
|
+
path: '/archive',
|
|
137
|
+
active: currentPath === '/archive'
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function buildCompactMoreItems({
|
|
143
|
+
langItems,
|
|
144
|
+
navigate,
|
|
145
|
+
t,
|
|
146
|
+
themeItems,
|
|
147
|
+
themeMode
|
|
148
|
+
}: {
|
|
149
|
+
langItems: MenuProps['items']
|
|
150
|
+
navigate: NavigateFunction
|
|
151
|
+
t: TFunction
|
|
152
|
+
themeItems: MenuProps['items']
|
|
153
|
+
themeMode: ThemeMode
|
|
154
|
+
}): MenuProps['items'] {
|
|
155
|
+
return [
|
|
156
|
+
{
|
|
157
|
+
key: 'settings',
|
|
158
|
+
label: t('common.settings'),
|
|
159
|
+
icon: <span className='material-symbols-rounded nav-menu-icon'>settings</span>,
|
|
160
|
+
onClick: () => {
|
|
161
|
+
void navigate('/config')
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
key: 'theme',
|
|
166
|
+
label: t('common.theme'),
|
|
167
|
+
icon: (
|
|
168
|
+
<span className='material-symbols-rounded nav-menu-icon'>
|
|
169
|
+
{themeMode === 'light' ? 'light_mode' : themeMode === 'dark' ? 'dark_mode' : 'desktop_windows'}
|
|
170
|
+
</span>
|
|
171
|
+
),
|
|
172
|
+
children: themeItems
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
key: 'language',
|
|
176
|
+
label: t('common.language'),
|
|
177
|
+
icon: <span className='material-symbols-rounded nav-menu-icon'>language</span>,
|
|
178
|
+
children: langItems
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
}
|
|
@@ -15,6 +15,7 @@ import type { SessionContextMenuEntry } from './SessionContextMenuContent'
|
|
|
15
15
|
interface SessionContextMenuProps {
|
|
16
16
|
children: ReactElement
|
|
17
17
|
session: Session
|
|
18
|
+
trigger?: ('click' | 'contextMenu')[]
|
|
18
19
|
onArchive: (id: string) => void | Promise<void>
|
|
19
20
|
onDelete: (id: string) => void | Promise<void>
|
|
20
21
|
onRename: (id: string, title: string) => Promise<void>
|
|
@@ -26,6 +27,7 @@ type PendingSessionMenuAction = 'archive' | 'delete' | null
|
|
|
26
27
|
export function SessionContextMenu({
|
|
27
28
|
children,
|
|
28
29
|
session,
|
|
30
|
+
trigger = ['contextMenu'],
|
|
29
31
|
onArchive,
|
|
30
32
|
onDelete,
|
|
31
33
|
onRename,
|
|
@@ -174,7 +176,7 @@ export function SessionContextMenu({
|
|
|
174
176
|
|
|
175
177
|
return (
|
|
176
178
|
<Dropdown
|
|
177
|
-
trigger={
|
|
179
|
+
trigger={trigger}
|
|
178
180
|
open={open}
|
|
179
181
|
onOpenChange={(nextOpen) => {
|
|
180
182
|
setOpen(nextOpen)
|
|
@@ -333,6 +333,68 @@
|
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
+
.session-item--touch {
|
|
337
|
+
.session-header-side {
|
|
338
|
+
gap: 8px;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.time-display {
|
|
342
|
+
opacity: 1 !important;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.action-btn--more {
|
|
346
|
+
width: 40px;
|
|
347
|
+
min-width: 40px;
|
|
348
|
+
height: 40px;
|
|
349
|
+
border-radius: 8px;
|
|
350
|
+
color: var(--sub-text-color);
|
|
351
|
+
|
|
352
|
+
.material-symbols-rounded {
|
|
353
|
+
font-size: 18px;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.session-item--compact {
|
|
359
|
+
.session-info {
|
|
360
|
+
gap: 6px;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.session-header {
|
|
364
|
+
align-items: flex-start;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.session-header-side {
|
|
368
|
+
gap: 4px;
|
|
369
|
+
min-height: 0;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.time-display {
|
|
373
|
+
display: none;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.tags-container {
|
|
377
|
+
gap: 4px;
|
|
378
|
+
|
|
379
|
+
.session-tag {
|
|
380
|
+
max-width: 96px;
|
|
381
|
+
|
|
382
|
+
&--count {
|
|
383
|
+
padding: 0 5px;
|
|
384
|
+
color: var(--sub-text-color);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.session-item--compact.session-item--touch {
|
|
391
|
+
.action-btn--more {
|
|
392
|
+
width: 36px;
|
|
393
|
+
min-width: 36px;
|
|
394
|
+
height: 36px;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
336
398
|
@keyframes spin {
|
|
337
399
|
from {
|
|
338
400
|
transform: rotate(0deg);
|