🤯 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
💄 style(chat-input): scroll the whole execution target list under a pinned header (#19440)
Innei3d3e64d7f6ca
diff --git a/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx b/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsxindex 3224ebb7dcb..0a854380d2e 100644--- a/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx+++ b/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx@@ -125,9 +125,6 @@ const styles = createStaticStyles(({ css }) => ({`,deviceList: css`overflow-y: auto;-- /* Cap the device section so a long list (servers/CLI fleets) stays scrollable- inside the popover instead of growing past the viewport. */max-height: 240px;/* Room for the scrollbar so rows don't sit flush against it. */@@ -249,7 +246,7 @@ const styles = createStaticStyles(({ css }) => ({align-items: center;justify-content: space-between;- padding-block: 6px 4px;+ padding-block: 4px;padding-inline: 8px;`,headerInfo: css`@@ -720,7 +717,7 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {{d.online ? null : (<ButtonclassName={styles.reconnectButton}- icon={RefreshCwIcon}+ icon={<Icon icon={RefreshCwIcon} size={10} />}loading={reconnectingDeviceId === d.deviceId}size={'small'}type={'text'}@@ -740,7 +737,7 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {};const content = (- <Flexbox gap={6} style={{ maxWidth: 320, minWidth: 280 }}>+ <Flexbox style={{ maxWidth: 320, minWidth: 280 }}><div className={styles.header}><Flexbox horizontal align={'center'} gap={4}><span className={styles.headerTitle}>{t('heteroAgent.executionTarget.title')}</span>@@ -872,30 +869,34 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {onClick={() => void handleSelect('sandbox')}/>{deviceRows.length > 0 ? (- <div className={styles.deviceList}>- {showDeviceGroups ? (- <>- {privateDevices.length > 0 ? (- <>- <div className={styles.groupLabel}>- {t('heteroAgent.executionTarget.personalGroup')}- </div>+ showDeviceGroups ? (+ <>+ {privateDevices.length > 0 ? (+ <>+ <div className={styles.groupLabel}>+ {t('heteroAgent.executionTarget.personalGroup')}+ </div>+ <div className={styles.deviceList}>{privateDevices.map((d) => renderDeviceRow(d))}- </>- ) : null}- {workspaceDevices.length > 0 ? (- <>- <div className={styles.groupLabel}>- {t('heteroAgent.executionTarget.workspaceGroup')}- </div>+ </div>+ </>+ ) : null}+ {workspaceDevices.length > 0 ? (+ <>+ <div className={styles.groupLabel}>+ {t('heteroAgent.executionTarget.workspaceGroup')}+ </div>+ <div className={styles.deviceList}>{workspaceDevices.map((d) => renderDeviceRow(d))}- </>- ) : null}- </>- ) : (- personalOnlyDevices.map((d) => renderDeviceRow(d))- )}- </div>+ </div>+ </>+ ) : null}+ </>+ ) : (+ <div className={styles.deviceList}>+ {personalOnlyDevices.map((d) => renderDeviceRow(d))}+ </div>+ )) : null}{hasNoDevices && isLoading ? (<div className={styles.empty}>{t('heteroAgent.executionTarget.loading')}</div>