Skip to content

Commit 9dc0d05

Browse files
authored
feat(omni-agent): zoom out game welcome card (#1672)
1 parent 3b6ca2b commit 9dc0d05

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

multimodal/omni-tars/omni-agent/src/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default class OmniTARSAgent extends ComposableAgent {
2323
category: 'Game',
2424
// prompt: `Play this game, your target score is 1024`,
2525
image:
26-
'https://img.poki-cdn.com/cdn-cgi/image/q=78,scq=50,width=80,height=80,fit=cover,f=auto/cb8c967c-4a78-4ffa-8506-cbac69746f4f/2048.png',
26+
'https://img.poki-cdn.com/cdn-cgi/image/q=78,scq=50,width=628,height=628,fit=cover,f=auto/cb8c967c-4a78-4ffa-8506-cbac69746f4f/2048.png',
2727
agentOptions: {
2828
agentMode: {
2929
id: 'game',
@@ -37,7 +37,7 @@ export default class OmniTARSAgent extends ComposableAgent {
3737
category: 'Game',
3838
// prompt: `Play this game, win the computer`,
3939
image:
40-
'https://img.poki-cdn.com/cdn-cgi/image/q=78,scq=50,width=80,height=80,fit=cover,f=auto/e80686db-b0fb-4f2c-bd2f-3a89734f102a/four-in-a-row.jpg',
40+
'https://img.poki-cdn.com/cdn-cgi/image/q=78,scq=50,width=628,height=628,fit=cover,f=auto/e80686db-b0fb-4f2c-bd2f-3a89734f102a/four-in-a-row.jpg',
4141
agentOptions: {
4242
agentMode: {
4343
id: 'game',
@@ -51,7 +51,7 @@ export default class OmniTARSAgent extends ComposableAgent {
5151
category: 'Game',
5252
// prompt: `Play this game, reach level 5`,
5353
image:
54-
'https://img.poki-cdn.com/cdn-cgi/image/q=78,scq=50,width=80,height=80,fit=cover,f=auto/9fec1234ce2afd5e789f56da463dcffc/block-the-pig.jpeg',
54+
'https://img.poki-cdn.com/cdn-cgi/image/q=78,scq=50,width=628,height=628,fit=cover,f=auto/9fec1234ce2afd5e789f56da463dcffc/block-the-pig.jpeg',
5555
agentOptions: {
5656
agentMode: {
5757
id: 'game',
@@ -65,7 +65,7 @@ export default class OmniTARSAgent extends ComposableAgent {
6565
category: 'Game',
6666
// prompt: `Play this game, reach level 5`,
6767
image:
68-
'https://img.poki-cdn.com/cdn-cgi/image/q=78,scq=50,width=80,height=80,fit=cover,f=auto/2a503d0a1d9475d6e62c7ea11caa429ab952aa8f500755613a34e66e2196fe82/factory-balls-forever.png',
68+
'https://img.poki-cdn.com/cdn-cgi/image/q=78,scq=50,width=628,height=628,fit=cover,f=auto/2a503d0a1d9475d6e62c7ea11caa429ab952aa8f500755613a34e66e2196fe82/factory-balls-forever.png',
6969
agentOptions: {
7070
agentMode: {
7171
id: 'game',
@@ -79,7 +79,7 @@ export default class OmniTARSAgent extends ComposableAgent {
7979
category: 'Game',
8080
// prompt: `Play this game, reach level 5`,
8181
image:
82-
'https://img.poki-cdn.com/cdn-cgi/image/q=78,scq=50,width=80,height=80,fit=cover,f=auto/894ed059623f65b643795d0e70ed41cd/cubinko.png',
82+
'https://img.poki-cdn.com/cdn-cgi/image/q=78,scq=50,width=628,height=628,fit=cover,f=auto/894ed059623f65b643795d0e70ed41cd/cubinko.png',
8383
agentOptions: {
8484
agentMode: {
8585
id: 'game',
@@ -93,7 +93,7 @@ export default class OmniTARSAgent extends ComposableAgent {
9393
category: 'Game',
9494
// prompt: `Play this game, your target score is 600`,
9595
image:
96-
'https://img.poki-cdn.com/cdn-cgi/image/q=78,scq=50,width=80,height=80,fit=cover,f=auto/0770daaa8c4ff3c36dd53e6e41f59396/penalty-kicks.png',
96+
'https://img.poki-cdn.com/cdn-cgi/image/q=78,scq=50,width=628,height=628,fit=cover,f=auto/0770daaa8c4ff3c36dd53e6e41f59396/penalty-kicks.png',
9797
agentOptions: {
9898
agentMode: {
9999
id: 'game',

multimodal/tarko/agent-ui/src/standalone/home/WelcomeCards.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,7 @@ const WelcomeCards: React.FC<WelcomeCardsProps> = ({
148148
animate={{ opacity: 1, y: 0 }}
149149
exit={{ opacity: 0, y: -20 }}
150150
transition={{ duration: 0.3 }}
151-
className={`grid justify-center ${
152-
activeCategory === 'Game'
153-
? 'grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-4 max-w-4xl mx-auto'
154-
: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6'
155-
}`}
151+
className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6"
156152
>
157153
{activeCards.map((card, index) => {
158154
const cardId = `${card.category}-${card.title}`;
@@ -183,11 +179,7 @@ const WelcomeCards: React.FC<WelcomeCardsProps> = ({
183179
}`}
184180
>
185181
{/* 主卡片容器 */}
186-
<div
187-
className={`relative rounded-2xl overflow-hidden bg-white dark:bg-black/10 backdrop-blur-sm border border-gray-200/40 dark:border-white/5 transition-all duration-300 group-hover:border-gray-300/60 dark:group-hover:border-white/10 shadow-lg dark:shadow-none group-hover:shadow-xl dark:group-hover:shadow-none ${
188-
card.category === 'Game' ? 'h-32 aspect-square' : 'h-64'
189-
}`}
190-
>
182+
<div className="relative h-64 rounded-2xl overflow-hidden bg-white dark:bg-black/10 backdrop-blur-sm border border-gray-200/40 dark:border-white/5 transition-all duration-300 group-hover:border-gray-300/60 dark:group-hover:border-white/10 shadow-lg dark:shadow-none group-hover:shadow-xl dark:group-hover:shadow-none">
191183
{/* 背景层 */}
192184
<div className="absolute inset-0">
193185
{card.image ? (

0 commit comments

Comments
 (0)