Преглед изворни кода

fix(web): polish preset chrome and subagent menu after review

Yif пре 2 месеци
родитељ
комит
a95e3265f6

+ 1 - 1
packages/client/ui-agent-preset/src/client/AgentPresetLabel.module.css

@@ -5,7 +5,7 @@
   align-items: center;
   gap: 4px;
   max-width: 180px;
-  padding: 0 8px;
+  padding: 0 2px 0 0;
   height: 22px;
   border-radius: 6px;
   background: var(--dsw-alias-fill-tsp-secondary);

+ 1 - 1
packages/client/ui-agent-preset/src/client/AgentPresetLabel.tsx

@@ -57,7 +57,7 @@ export function AgentPresetLabel({
   const text = option === undefined ? undefined : presetDisplayText(option, t)
   return (
     <span className={css.label} title={text?.description ?? t('headerHint')}>
-      <IconAgentPresetOutline16 className={css.icon} />
+      <IconAgentPresetOutline16 size={14} className={css.icon} />
       {text?.name ?? preset}
     </span>
   )

+ 6 - 0
packages/client/ui-agent-preset/src/client/AgentPresetSection.module.css

@@ -26,6 +26,12 @@
   gap: 10px;
 }
 
+/* Group-to-group breathing room: the section's 12px gap plus 20px reads the
+   two rosters as separate blocks (32px total). */
+.group + .group {
+  margin-top: 20px;
+}
+
 .groupHead {
   margin: 0;
   font-size: 12px;

+ 1 - 0
packages/client/ui-conversation/src/client/skeleton/ConversationRoot.module.css

@@ -292,6 +292,7 @@
 .heroWorkspaceRow {
   display: flex;
   align-items: center;
+  gap: 2px;
   min-width: 0;
   /* figma drew px 8; nudged +12 so the chip's folder glyph lines up closer to
      the card's inner controls below. */

+ 1 - 1
packages/client/ui-settings/src/client/SettingsRoot.module.css

@@ -73,7 +73,7 @@
   z-index: 1;
   display: flex;
   width: 800px;
-  height: min(824px, calc(100vh - 48px));
+  height: min(800px, calc(100vh - 48px));
   max-width: calc(100vw - 48px);
   border-radius: 24px;
   overflow: hidden;

+ 0 - 1
packages/client/ui-subagent/src/client/SubagentCatalogAction.module.css

@@ -54,7 +54,6 @@
   max-height: min(560px, calc(100vh - 140px));
   padding: 4px;
   overflow: auto;
-  border: 1px solid var(--dsw-alias-border-l2);
   border-radius: 12px;
   background: var(--dsw-specific-menu);
   --dsh-scrollbar-thumb: var(--dsw-alias-scrollbar-bg-l2);