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(resource): align library toolbar sort icon and center Works All chip (#22938)

Inneibf294132981e
diff --git a/src/features/ResourceManager/components/Explorer/ToolBar/SortDropdown.tsx b/src/features/ResourceManager/components/Explorer/ToolBar/SortDropdown.tsx
index b1118f63c31..f268104b43e 100644
--- a/src/features/ResourceManager/components/Explorer/ToolBar/SortDropdown.tsx
+++ b/src/features/ResourceManager/components/Explorer/ToolBar/SortDropdown.tsx
@@ -29,7 +29,12 @@ const SortDropdown = memo<SortDropdownProps>(({ iconOnly = false }) => {
return (
<DropdownMenu items={items}>
{iconOnly ? (
- <ActionIcon icon={currentSortIcon} title={currentSortLabel} />
+ // Match the 32px SearchBar and icon-only "+" Button it sits beside.
+ <ActionIcon
+ icon={currentSortIcon}
+ size={{ blockSize: 32, size: 16 }}
+ title={currentSortLabel}
+ />
) : (
<ActionIconWithChevron icon={currentSortIcon} title={currentSortLabel} />
)}
diff --git a/src/features/WorkGallery/index.tsx b/src/features/WorkGallery/index.tsx
index 64432ec16d5..404e44de316 100644
--- a/src/features/WorkGallery/index.tsx
+++ b/src/features/WorkGallery/index.tsx
@@ -27,12 +27,16 @@ const styles = createStaticStyles(({ css }) => ({
agentFilter: css`
flex: none;
- padding-inline: 5px 10px;
+ padding-inline: 10px;
border: 1px solid transparent;
border-radius: 999px;
color: ${cssVar.colorTextSecondary};
`,
+ // The avatar already carries visual weight on the leading side.
+ agentFilterWithAvatar: css`
+ padding-inline-start: 5px;
+ `,
agentFilterActive: css`
border-color: ${cssVar.colorBorder};
color: ${cssVar.colorText};
@@ -149,9 +153,13 @@ const AgentFilter = memo<AgentFilterProps>(({ active, agentId, onSelect }) => {
return (
<Button
- className={cx(styles.agentFilter, active && styles.agentFilterActive)}
size={'small'}
type={'text'}
+ className={cx(
+ styles.agentFilter,
+ styles.agentFilterWithAvatar,
+ active && styles.agentFilterActive,
+ )}
icon={
<AgentAvatar
agentId={agentId}