🤯 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.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix(chat-input): keep branch switcher footer pinned while loading (#20759)
Arvin Xua1fbc6728b80
diff --git a/src/features/ChatInput/ControlBar/BranchSwitcher.tsx b/src/features/ChatInput/ControlBar/BranchSwitcher.tsxindex 88560d74055..11904d58249 100644--- a/src/features/ChatInput/ControlBar/BranchSwitcher.tsx+++ b/src/features/ChatInput/ControlBar/BranchSwitcher.tsx@@ -62,8 +62,17 @@ const styles = createStaticStyles(({ css }) => ({header: css`padding: 0;`,+ // Fill the list slot like `list` does, so the footer stays pinned to the+ // bottom of the fixed-height popup while loading / empty.emptyState: css`+ display: flex;+ flex: 1;+ align-items: center;+ justify-content: center;++ min-height: 0;padding-block: 12px;+font-size: 12px;color: ${cssVar.colorTextTertiary};text-align: center;@@ -146,7 +155,13 @@ const styles = createStaticStyles(({ css }) => ({flex: 1;min-height: 0;`,+ // The base popup only becomes a flex column once the virtual list mounts;+ // force it so the loading / empty placeholder can fill the list slot too.popup: css`+ overflow: hidden;+ display: flex;+ flex-direction: column;+width: 300px;height: 360px;`,