🤯 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: remove extra sandbox picker inline padding (#20536)
Innei0ffbc35a17fe
diff --git a/src/features/ChatInput/ControlBar/OptionRow.tsx b/src/features/ChatInput/ControlBar/OptionRow.tsxindex ae4e199e909..3f74c8c299a 100644--- a/src/features/ChatInput/ControlBar/OptionRow.tsx+++ b/src/features/ChatInput/ControlBar/OptionRow.tsx@@ -116,6 +116,7 @@ const styles = createStaticStyles(({ css }) => ({export interface OptionRowProps {active?: boolean;+ className?: string;desc?: ReactNode;disabled?: boolean;/** Trailing action, kept live while the row itself is disabled. */@@ -130,12 +131,13 @@ export interface OptionRowProps {}const OptionRow = memo<OptionRowProps>(- ({ active, desc, disabled, extra, icon, label, onClick, tag, tags }) => (+ ({ active, className, desc, disabled, extra, icon, label, onClick, tag, tags }) => (<divclassName={cx(styles.option,active && styles.optionActive,disabled && styles.optionDisabled,+ className,)}onClick={() => {if (!disabled) onClick();diff --git a/src/features/ChatInput/ControlBar/SandboxInstancePicker.tsx b/src/features/ChatInput/ControlBar/SandboxInstancePicker.tsxindex 6e0c1ca5fb6..709ba6167ea 100644--- a/src/features/ChatInput/ControlBar/SandboxInstancePicker.tsx+++ b/src/features/ChatInput/ControlBar/SandboxInstancePicker.tsx@@ -1,8 +1,8 @@'use client';import { Github } from '@lobehub/icons';-import { Flexbox, Icon, Popover, Tooltip } from '@lobehub/ui';-import { Skeleton, Text } from '@lobehub/ui/base-ui';+import { Flexbox, Icon, Tooltip } from '@lobehub/ui';+import { Popover, Skeleton, Text } from '@lobehub/ui/base-ui';import { createStaticStyles, cssVar, cx } from 'antd-style';import {AppWindowMacIcon,@@ -46,7 +46,6 @@ const styles = createStaticStyles(({ css }) => ({groupLabel: css`margin-block-start: 6px;padding-block: 4px;- padding-inline: 8px;font-size: 11px;font-weight: 500;@@ -60,7 +59,6 @@ const styles = createStaticStyles(({ css }) => ({justify-content: space-between;padding-block: 4px;- padding-inline: 8px;`,headerInfo: css`cursor: help;@@ -99,17 +97,19 @@ const styles = createStaticStyles(({ css }) => ({`,notice: css`padding-block: 8px;- padding-inline: 8px;font-size: 12px;color: ${cssVar.colorTextDescription};`,+ option: css`+ && {+ padding-inline: 0;+ }+ `,skeletonRow: css`display: flex;gap: 10px;align-items: center;-padding-block: 8px;- padding-inline: 8px;`,blocked: css`color: ${cssVar.colorWarning};@@ -326,6 +326,7 @@ const SandboxInstancePicker = memo<SandboxInstancePickerProps>(return (<OptionRowactive={instance.id === boundInstanceId}+ className={styles.option}// Already this conversation's own instance: it stays selectable// however the lease reads, because "you cannot pick what you are// already using" is never the right thing to tell someone.@@ -451,6 +452,7 @@ const SandboxInstancePicker = memo<SandboxInstancePickerProps>(<Flexbox className={styles.temporary}><OptionRowactive={value.mode === 'ephemeral'}+ className={styles.option}desc={t('sandboxStorage.ephemeralDesc')}icon={<Icon icon={TimerIcon} size={16} />}label={t('sandboxStorage.ephemeral')}@@ -464,6 +466,7 @@ const SandboxInstancePicker = memo<SandboxInstancePickerProps>(// more place files could go — and the tag says why it is not// simply selectable.<OptionRow+ className={styles.option}desc={t('sandboxStorage.persistentUpsellDesc')}icon={<Icon icon={FolderClockIcon} size={16} />}label={t('sandboxStorage.persistentUpsell')}@@ -483,6 +486,7 @@ const SandboxInstancePicker = memo<SandboxInstancePickerProps>(// the row only changes which step it names, because "set up an// environment" reads as a dead end to someone who already has one.<OptionRow+ className={styles.option}icon={<Icon icon={PlusIcon} size={16} />}desc={t(hasNoEnvironments