Browse Source

fix(desktop): missing keybinds in tooltips

Adam 2 months ago
parent
commit
5420702f69
1 changed files with 18 additions and 2 deletions
  1. 18 2
      packages/app/src/pages/layout.tsx

+ 18 - 2
packages/app/src/pages/layout.tsx

@@ -519,7 +519,15 @@ export default function Layout(props: ParentProps) {
             </A>
             </A>
           </Tooltip>
           </Tooltip>
           <div class="hidden group-hover/session:flex group-active/session:flex group-focus-within/session:flex text-text-base gap-1 items-center absolute top-1 right-1">
           <div class="hidden group-hover/session:flex group-active/session:flex group-focus-within/session:flex text-text-base gap-1 items-center absolute top-1 right-1">
-            <Tooltip placement={props.mobile ? "bottom" : "right"} value="Archive session">
+            <Tooltip
+              placement={props.mobile ? "bottom" : "right"}
+              value={
+                <div class="flex items-center gap-2">
+                  <span>Archive session</span>
+                  <span class="text-icon-base text-12-medium">{command.keybind("session.archive")}</span>
+                </div>
+              }
+            >
               <IconButton icon="archive" variant="ghost" onClick={() => archiveSession(props.session)} />
               <IconButton icon="archive" variant="ghost" onClick={() => archiveSession(props.session)} />
             </Tooltip>
             </Tooltip>
           </div>
           </div>
@@ -584,7 +592,15 @@ export default function Layout(props: ParentProps) {
                       </DropdownMenu.Content>
                       </DropdownMenu.Content>
                     </DropdownMenu.Portal>
                     </DropdownMenu.Portal>
                   </DropdownMenu>
                   </DropdownMenu>
-                  <Tooltip placement="top" value="New session">
+                  <Tooltip
+                    placement="top"
+                    value={
+                      <div class="flex items-center gap-2">
+                        <span>New session</span>
+                        <span class="text-icon-base text-12-medium">{command.keybind("session.new")}</span>
+                      </div>
+                    }
+                  >
                     <IconButton as={A} href={`${slug()}/session`} icon="plus-small" variant="ghost" />
                     <IconButton as={A} href={`${slug()}/session`} icon="plus-small" variant="ghost" />
                   </Tooltip>
                   </Tooltip>
                 </div>
                 </div>