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.

Right-align the public recycle bin clear action

wyt11e25203eacc
diff --git a/src/renderer/style.css b/src/renderer/style.css
index 3010edc7..35342a4a 100644
--- a/src/renderer/style.css
+++ b/src/renderer/style.css
@@ -14504,7 +14504,7 @@ body.is-task-side-panel-resizing * { cursor: col-resize !important; }
.settings-recycle-toolbar {
display: flex;
align-items: center;
- justify-content: space-between;
+ justify-content: flex-end;
flex-wrap: wrap;
gap: 8px 18px;
border-bottom: 1px solid var(--border);
diff --git a/test/e2e/settings_e2e_modules.spec.ts b/test/e2e/settings_e2e_modules.spec.ts
index 82ac5d72..95a679ee 100644
--- a/test/e2e/settings_e2e_modules.spec.ts
+++ b/test/e2e/settings_e2e_modules.spec.ts
@@ -100,6 +100,21 @@ test.describe('settings modules and model guard', () => {
expect(recycleLayout.overflowY).toBe('auto');
expect(recycleLayout.maxHeight).toBeGreaterThan(0);
expect(recycleLayout.maxHeight).toBeLessThanOrEqual(320);
+ const clear = appPage.locator('#settings-recycle-body [data-recycle-clear]');
+ for (const [language, width] of [['en', 1280], ['zh', 620]] as const) {
+ await appPage.setViewportSize({ width, height: 900 });
+ await appPage.evaluate(async language => { await (window as any).setLang(language); }, language);
+ await expect(clear).toBeVisible();
+ await expect(clear).toBeDisabled();
+ expect(await clear.evaluate(element => {
+ const button = element.getBoundingClientRect();
+ const toolbar = element.closest('.settings-recycle-toolbar')!.getBoundingClientRect();
+ return Math.abs(toolbar.right - button.right) <= 1 && button.left >= toolbar.left;
+ })).toBe(true);
+ await appPage.locator('#settings-recycle-group').screenshot({ path: testInfo.outputPath(`recycle-clear-${language}-${width}.png`) });
+ }
+ await appPage.setViewportSize({ width: 1280, height: 900 });
+ await appPage.evaluate(async () => { await (window as any).setLang('en'); });
await openSettingsTab(appPage, 'credentials');
await expect(appPage.locator('[data-settings-add="chat"]')).toBeVisible();