Browse Source

fix(web-ui): header title 14/20, drop turns counter, global grayscale antialiasing

Yif 2 months ago
parent
commit
0a625b1144

+ 2 - 9
packages/client/ui-conversation/src/client/skeleton/ConversationRoot.module.css

@@ -54,8 +54,8 @@
   border: none;
   border: none;
   border-radius: 12px;
   border-radius: 12px;
   background: transparent;
   background: transparent;
-  font-size: 13px;
-  line-height: 16px;
+  font-size: 14px;
+  line-height: 20px;
   color: var(--dsw-alias-label-tertiary);
   color: var(--dsw-alias-label-tertiary);
   text-overflow: ellipsis;
   text-overflow: ellipsis;
   white-space: nowrap;
   white-space: nowrap;
@@ -72,13 +72,6 @@
   cursor: default;
   cursor: default;
 }
 }
 
 
-.meta {
-  margin-left: 4px;
-  font-size: 12px;
-  line-height: 18px;
-  color: var(--dsw-alias-label-tertiary);
-}
-
 /* figma Tab_Group 34:11441: 35px strip, gap 36, pad-left 8, tabs bottom-aligned. */
 /* figma Tab_Group 34:11441: 35px strip, gap 36, pad-left 8, tabs bottom-aligned. */
 .tabs {
 .tabs {
   display: flex;
   display: flex;

+ 0 - 8
packages/client/ui-conversation/src/client/skeleton/ConversationSession.tsx

@@ -31,7 +31,6 @@ export function ConversationSession({
   const activeId = useStore(s => s.view) ?? 'chat'
   const activeId = useStore(s => s.view) ?? 'chat'
   const active = tabs.find(view => view.id === activeId) ?? tabs[0]
   const active = tabs.find(view => view.id === activeId) ?? tabs[0]
   const ancestry = useSessions(s => deriveAncestry(s, sessionId), shallowEqual)
   const ancestry = useSessions(s => deriveAncestry(s, sessionId), shallowEqual)
-  const turns = useSession(s => countTurns(s))
   const composerPhase = useSession(s => s.composerPhase)
   const composerPhase = useSession(s => s.composerPhase)
   const blank = useSession(s => s.blank)
   const blank = useSession(s => s.blank)
   const inputState = useInput(s => s)
   const inputState = useInput(s => s)
@@ -69,7 +68,6 @@ export function ConversationSession({
               )
               )
             })}
             })}
             {ancestry.length === 0 && <span className={css.crumbCurrent}>{sessionId}</span>}
             {ancestry.length === 0 && <span className={css.crumbCurrent}>{sessionId}</span>}
-            <span className={css.meta}>· {turns} turns</span>
           </nav>
           </nav>
         </div>
         </div>
         {tabs.length > 1 && (
         {tabs.length > 1 && (
@@ -95,9 +93,3 @@ export function ConversationSession({
     </>
     </>
   )
   )
 }
 }
-
-function countTurns(snapshot: { nodes: readonly { kind: string }[] }): number {
-  let count = 0
-  for (const node of snapshot.nodes) if (node.kind === 'user') count += 1
-  return count
-}

+ 4 - 0
packages/client/web/src/base.css

@@ -15,6 +15,10 @@ body,
 
 
 body {
 body {
   font-family: var(--dsw-font-family);
   font-family: var(--dsw-font-family);
+  /* Grayscale antialiasing over subpixel rendering: WebKit/Blink and the
+     Firefox macOS equivalent; other engines ignore both lines. */
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale;
   color: var(--dsw-alias-label-primary);
   color: var(--dsw-alias-label-primary);
   background: var(--dsw-alias-bg-base);
   background: var(--dsw-alias-bg-base);
 }
 }