Skip to content

Commit 142e3d4

Browse files
author
li
committed
feat: showcase自适应,展示selectnodeinfo
1 parent 95b3f3b commit 142e3d4

File tree

8 files changed

+40
-37
lines changed

8 files changed

+40
-37
lines changed

dist/copilot_web/App-qxWUR1pb.js renamed to dist/copilot_web/App-BduDTLgb.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/copilot_web/assets/input-BbfIXYvZ.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/copilot_web/assets/input-DIJFbPQS.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/copilot_web/input.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/copilot_web/workflowChat-Iczzq1Rd.js renamed to dist/copilot_web/workflowChat-CkoLcncj.js

Lines changed: 28 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/src/components/chat/messages/Showcase.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const Showcase: React.FC = () => {
9999
</div>
100100
{
101101
getShowcaes()?.list?.map((item, index) => <div
102-
className='h-[50px] flex flex-row items-center mt-4 bg-showcase-bg shadow-[0_4px_24px_rgba(0,0,0,0.12)] hover:!shadow-[0_0_12px_2px_#3b82f6] hover:!shadow-[0_0_0_4px_rgba(59,130,246,0.15)] px-4 py-2 rounded-full'
102+
className='min-h-[50px] flex flex-row items-center mt-4 bg-showcase-bg shadow-[0_4px_24px_rgba(0,0,0,0.12)] hover:!shadow-[0_0_12px_2px_#3b82f6] hover:!shadow-[0_0_0_4px_rgba(59,130,246,0.15)] px-4 py-2 rounded-full'
103103
key={index.toString()}
104104
onClick={() => {
105105
isAutoScroll.current = true
@@ -121,7 +121,7 @@ const Showcase: React.FC = () => {
121121
}}
122122
>
123123
{ICONS[index]}
124-
<div className='text-sm text-gray-900 font-normal ml-4'>
124+
<div className='flex-1 text-sm text-gray-900 font-normal ml-4'>
125125
{item.name}
126126
</div>
127127
</div>)

ui/src/output.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,6 @@
430430
.h-\[4\.5rem\] {
431431
height: 4.5rem;
432432
}
433-
.h-\[50px\] {
434-
height: 50px;
435-
}
436433
.h-auto {
437434
height: auto;
438435
}
@@ -469,6 +466,9 @@
469466
.min-h-0 {
470467
min-height: 0px;
471468
}
469+
.min-h-\[50px\] {
470+
min-height: 50px;
471+
}
472472
.min-h-\[80px\] {
473473
min-height: 80px;
474474
}

ui/src/workflowChat/workflowChat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,14 +820,14 @@ export default function WorkflowChat({ onClose, visible = true, triggerUsage = f
820820
className="border-t px-4 py-3 border-gray-200 bg-white sticky bottom-0"
821821
style={{ display: activeTab === 'chat' ? 'block' : 'none' }}
822822
>
823-
{/* {selectedNode && (
823+
{selectedNode && (
824824
<SelectedNodeInfo
825825
nodeInfo={selectedNode}
826826
onSendWithIntent={handleSendMessageWithIntent}
827827
loading={loading}
828828
onSendWithContent={handleSendMessageWithContent}
829829
/>
830-
)} */}
830+
)}
831831

832832
<ChatInput
833833
input={input}

0 commit comments

Comments
 (0)