Browse Source

fix: archive icon replaces diff count on hover

David Hill 1 month ago
parent
commit
fe2cc0cff1
1 changed files with 7 additions and 1 deletions
  1. 7 1
      packages/app/src/pages/layout.tsx

+ 7 - 1
packages/app/src/pages/layout.tsx

@@ -903,7 +903,13 @@ export default function Layout(props: ParentProps) {
               <span class="text-14-regular text-text-strong grow-1 min-w-0 overflow-hidden text-ellipsis truncate">
               <span class="text-14-regular text-text-strong grow-1 min-w-0 overflow-hidden text-ellipsis truncate">
                 {props.session.title}
                 {props.session.title}
               </span>
               </span>
-              <Show when={props.session.summary}>{(summary) => <DiffChanges changes={summary()} />}</Show>
+              <Show when={props.session.summary}>
+                {(summary) => (
+                  <div class="group-hover/session:hidden group-active/session:hidden group-focus-within/session:hidden">
+                    <DiffChanges changes={summary()} />
+                  </div>
+                )}
+              </Show>
             </div>
             </div>
           </A>
           </A>
         </Tooltip>
         </Tooltip>