From 4c7d8b0bc774061140e205e89b91df32ce937bf3 Mon Sep 17 00:00:00 2001
From: Jinjing <6427696+AmethystLiang@users.noreply.github.com>
Date: Mon, 31 Aug 2026 18:57:26 -0700
Subject: [PATCH] improve style
---
.../activity/activity-thread-options-menu.tsx | 55 +++++++++++--------
1 file changed, 33 insertions(+), 22 deletions(-)
diff --git a/src/renderer/src/components/activity/activity-thread-options-menu.tsx b/src/renderer/src/components/activity/activity-thread-options-menu.tsx
index e7cf66a677c..fff019e5038 100644
--- a/src/renderer/src/components/activity/activity-thread-options-menu.tsx
+++ b/src/renderer/src/components/activity/activity-thread-options-menu.tsx
@@ -1,6 +1,7 @@
import React from 'react'
import {
BellDot,
+ Check,
CheckCheck,
GitFork,
Layers,
@@ -27,6 +28,8 @@ import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip
import { translate } from '@/i18n/i18n'
import type { ActivityGroupBy } from './activity-thread-types'
+const ALIGNED_CHECKBOX_ITEM_CLASS = 'pl-2 [&>span.absolute]:hidden'
+
function getActivityGroupByLabel(groupBy: ActivityGroupBy): string {
switch (groupBy) {
case 'none':
@@ -131,25 +134,25 @@ export function ActivityThreadOptionsMenu({
onToggleUnread()}
onSelect={(event) => event.preventDefault()}
>
-
-
- {translate(
- 'auto.components.activity.ActivityPrototypePage.showUnreadOnly',
- 'Show unread only'
- )}
-
- {hasUnreadThreads ? (
-
- ) : null}
+
+ {translate(
+ 'auto.components.activity.ActivityPrototypePage.showUnreadOnly',
+ 'Show unread only'
+ )}
+ {hasUnreadThreads ? (
+
+ ) : null}
+ {unreadOnly ? : null}
@@ -215,14 +218,18 @@ export function ActivityThreadOptionsMenu({
onCompactModeChange(checked === true)}
onSelect={(event) => event.preventDefault()}
>
- {translate(
- 'auto.components.activity.ActivityPrototypePage.f70e4bec47',
- 'Compact mode'
- )}
+
+ {translate(
+ 'auto.components.activity.ActivityPrototypePage.f70e4bec47',
+ 'Compact mode'
+ )}
+
+ {compactMode ? : null}
@@ -235,14 +242,18 @@ export function ActivityThreadOptionsMenu({
{onShowChildAgentsChange ? (
onShowChildAgentsChange(checked === true)}
onSelect={(event) => event.preventDefault()}
>
- {translate(
- 'auto.components.activity.ActivityPrototypePage.showChildAgents',
- 'Show child agents'
- )}
+
+ {translate(
+ 'auto.components.activity.ActivityPrototypePage.showChildAgents',
+ 'Show child agents'
+ )}
+
+ {showChildAgents ? : null}
) : null}