GeezerVison is showing github.com — fix(desktop): missing keybinds in tooltips · ideabrian/opencode@5420702
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: packages/app/src/pages/layout.tsx +18-2Lines changed: 18 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -519,7 +519,15 @@ export default function Layout(props: ParentProps) { |
519 | 519 | </A> |
520 | 520 | </Tooltip> |
521 | 521 | <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"> |
522 | | - <Tooltip placement={props.mobile ? "bottom" : "right"} value="Archive session"> |
| 522 | + <Tooltip |
| 523 | + placement={props.mobile ? "bottom" : "right"} |
| 524 | + value={ |
| 525 | + <div class="flex items-center gap-2"> |
| 526 | + <span>Archive session</span> |
| 527 | + <span class="text-icon-base text-12-medium">{command.keybind("session.archive")}</span> |
| 528 | + </div> |
| 529 | + } |
| 530 | + > |
523 | 531 | <IconButton icon="archive" variant="ghost" onClick={() => archiveSession(props.session)} /> |
524 | 532 | </Tooltip> |
525 | 533 | </div> |
@@ -584,7 +592,15 @@ export default function Layout(props: ParentProps) { |
584 | 592 | </DropdownMenu.Content> |
585 | 593 | </DropdownMenu.Portal> |
586 | 594 | </DropdownMenu> |
587 | | - <Tooltip placement="top" value="New session"> |
| 595 | + <Tooltip |
| 596 | + placement="top" |
| 597 | + value={ |
| 598 | + <div class="flex items-center gap-2"> |
| 599 | + <span>New session</span> |
| 600 | + <span class="text-icon-base text-12-medium">{command.keybind("session.new")}</span> |
| 601 | + </div> |
| 602 | + } |
| 603 | + > |
588 | 604 | <IconButton as={A} href={`${slug()}/session`} icon="plus-small" variant="ghost" /> |
589 | 605 | </Tooltip> |
590 | 606 | </div> |
|