Skip to content

🀯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

πŸ’„ style(todo): keep one todo per row in the progress lists (#18565)

Arvin Xu56655d5558c7
diff --git a/src/features/Conversation/TodoProgress/index.tsx b/src/features/Conversation/TodoProgress/index.tsx
index 57b24f78fcc..fa579b98225 100644
--- a/src/features/Conversation/TodoProgress/index.tsx
+++ b/src/features/Conversation/TodoProgress/index.tsx
@@ -77,6 +77,13 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
listContainer: css`
overflow: hidden;
+ /* The rows are Base UI Checkbox labels, which are inline-flex. In a plain
+ block container they lay out as INLINE boxes β€” two or three short todos
+ share a line and the list wraps like prose. A column flex container
+ blockifies them, so one todo is one row again. */
+ display: flex;
+ flex-direction: column;
+
margin-block-start: 8px;
padding-block: 4px;
border-block-start: 1px solid ${cssVar.colorBorderSecondary};
diff --git a/src/features/Conversation/WorkingSidebar/ProgressSection/index.tsx b/src/features/Conversation/WorkingSidebar/ProgressSection/index.tsx
index ed00a86f4db..9b03fd490ed 100644
--- a/src/features/Conversation/WorkingSidebar/ProgressSection/index.tsx
+++ b/src/features/Conversation/WorkingSidebar/ProgressSection/index.tsx
@@ -87,7 +87,11 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
padding 0.2s ${cssVar.motionEaseInOut};
`,
listInner: css`
+ /* Blockify the inline-flex Base UI Checkbox labels β€” without this the todo
+ rows flow inline and wrap several per line. */
overflow: hidden;
+ display: flex;
+ flex-direction: column;
min-height: 0;
`,
processingRow: css`
diff --git a/src/features/Portal/Document/TodoList.tsx b/src/features/Portal/Document/TodoList.tsx
index d045ec43ece..2c6b5cd7410 100644
--- a/src/features/Portal/Document/TodoList.tsx
+++ b/src/features/Portal/Document/TodoList.tsx
@@ -79,6 +79,11 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
listContainer: css`
overflow-x: hidden;
+ /* Blockify the inline-flex Base UI Checkbox labels β€” without this the todo
+ rows flow inline and wrap several per line. */
+ display: flex;
+ flex-direction: column;
+
margin-block-start: 8px;
padding-block: 4px;
border-block-start: 1px solid ${cssVar.colorBorderSecondary};