Skip to content

armgit / Orkas

Public Imported from GitHub
0

Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.

Fix synced tab card sizing styles

wyt928698866ee2
diff --git a/src/renderer/style.css b/src/renderer/style.css
index f45558b2..fba26324 100644
--- a/src/renderer/style.css
+++ b/src/renderer/style.css
@@ -2822,7 +2822,7 @@ body.model-not-configured .main-content { flex-direction: column; }
flex: 1;
font-size: 13px;
line-height: 1.5;
- color: var(--muted);
+ color: var(--text-2);
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
@@ -8936,7 +8936,7 @@ body.model-not-configured .main-content { flex-direction: column; }
position: relative;
display: flex;
flex-direction: column;
- gap: 10px;
+ gap: 2px;
padding: 14px 16px;
background: #fff;
border: 1px solid var(--border);
@@ -8958,6 +8958,15 @@ body.model-not-configured .main-content { flex-direction: column; }
align-items: center;
gap: 10px;
min-height: 32px;
+ padding-right: 26px;
+}
+
+.agent-card-title {
+ flex: 1;
+ min-width: 0;
+ display: flex;
+ flex-direction: column;
+ gap: 1px;
}
.agent-card-name {
@@ -8971,13 +8980,37 @@ body.model-not-configured .main-content { flex-direction: column; }
white-space: nowrap;
}
+.agent-card-title .agent-card-name {
+ flex: none;
+ display: block;
+}
+
+.agent-card-meta {
+ min-width: 0;
+ display: flex;
+ align-items: center;
+ gap: 5px;
+ flex-wrap: nowrap;
+ overflow: hidden;
+}
+
+.agent-card-meta .agent-card-chip {
+ flex: 0 0 auto;
+}
+
.agent-card-source {
flex-shrink: 0;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ box-sizing: border-box;
+ min-height: 20px;
font-size: 11px;
+ line-height: 1.2;
font-weight: 600;
padding: 2px 8px;
- border-radius: 10px;
- letter-spacing: 0.4px;
+ border-radius: 999px;
+ letter-spacing: 0;
}
.agent-card-source.is-builtin {
background: rgba(148, 163, 184, 0.15);
@@ -8989,12 +9022,13 @@ body.model-not-configured .main-content { flex-direction: column; }
}
.agent-card-more {
- flex-shrink: 0;
+ position: absolute;
+ top: 12px;
+ right: 12px;
width: 22px;
height: 22px;
padding: 0;
- margin-top: -2px;
- margin-right: -4px;
+ margin: 0;
border: none;
background: transparent;
color: var(--muted);
@@ -9023,7 +9057,8 @@ body.model-not-configured .main-content { flex-direction: column; }
flex: 1;
font-size: 13px;
line-height: 1.5;
- color: var(--muted);
+ color: var(--text-2);
+ max-height: calc(13px * 1.5 * 3);
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
@@ -9040,6 +9075,7 @@ body.model-not-configured .main-content { flex-direction: column; }
align-items: center;
justify-content: space-between;
gap: 6px;
+ margin-top: 8px;
flex-wrap: wrap;
}
/* When no chip is present, the play button still hugs the right edge.
@@ -11160,7 +11196,13 @@ body.model-not-configured .main-content { flex-direction: column; }
.marketplace-card-chip,
.skill-card-chip,
.agent-card-chip {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ box-sizing: border-box;
+ min-height: 20px;
font-size: 11px;
+ line-height: 1.2;
padding: 2px 8px;
border-radius: 999px;
background: rgba(79,70,229,0.08);
diff --git a/test/renderer/synced-surface-regression.test.ts b/test/renderer/synced-surface-regression.test.ts
index 64f0ecd2..9c78a785 100644
--- a/test/renderer/synced-surface-regression.test.ts
+++ b/test/renderer/synced-surface-regression.test.ts
@@ -12,6 +12,10 @@ function cssBlock(css: string, selector: RegExp) {
return css.match(selector)?.[1] || '';
}
+function cssBlockLast(css: string, selector: RegExp) {
+ return [...css.matchAll(selector)].at(-1)?.[1] || '';
+}
+
describe('synced PC surface regressions', () => {
it('keeps card Use actions as text buttons and reserves icon sizing for icon buttons', () => {
const css = read('src/renderer/style.css');
@@ -35,6 +39,33 @@ describe('synced PC surface regressions', () => {
expect(html).toContain('class="agent-card-use agent-dialog-btn" id="agent-use-btn"');
});
+ it('keeps synced tab card layout sizing for agent and marketplace chips', () => {
+ const css = read('src/renderer/style.css');
+
+ const agentCardBlock = cssBlockLast(css, /\.agent-card\s*{([\s\S]*?)}/g);
+ expect(agentCardBlock).toContain('gap: 2px;');
+ expect(agentCardBlock).toContain('min-height: 132px;');
+
+ const agentHeaderBlock = cssBlockLast(css, /\.agent-card-header\s*{([\s\S]*?)}/g);
+ expect(agentHeaderBlock).toContain('padding-right: 26px;');
+ expect(css).toContain('.agent-card-title');
+ expect(css).toContain('.agent-card-meta');
+
+ const agentMoreBlock = cssBlockLast(css, /(?:^|\n)\.agent-card-more\s*{([\s\S]*?)}/g);
+ expect(agentMoreBlock).toContain('position: absolute;');
+ expect(agentMoreBlock).toContain('right: 12px;');
+ expect(agentMoreBlock).toContain('width: 22px;');
+
+ const skillDescBlock = cssBlock(css, /\.skill-card-desc\s*{([\s\S]*?)}/);
+ expect(skillDescBlock).toContain('color: var(--text-2);');
+
+ const chipBlock = cssBlock(css, /\.marketplace-card-chip,\s*\.skill-card-chip,\s*\.agent-card-chip\s*{([\s\S]*?)}/);
+ expect(chipBlock).toContain('display: inline-flex;');
+ expect(chipBlock).toContain('box-sizing: border-box;');
+ expect(chipBlock).toContain('min-height: 20px;');
+ expect(chipBlock).toContain('line-height: 1.2;');
+ });
+
it('keeps the external-agent entry copy aligned with external agents, not coding tools only', () => {
const html = read('src/renderer/index.html');
const en = read('src/renderer/locales/en.json');