diff --git a/app/src/components/app-sidebar/bots-panel.tsx b/app/src/components/app-sidebar/bots-panel.tsx index d0e385d653..81762e4fc3 100644 --- a/app/src/components/app-sidebar/bots-panel.tsx +++ b/app/src/components/app-sidebar/bots-panel.tsx @@ -69,9 +69,12 @@ const HeldReads = createContext<(botId: string, held: unknown) => void>( () => {}, ); -/** The rows under a Bot that are not a conversation: New conversation, and Show more. */ +/** + * The rows under a Bot that are not a conversation: New conversation, and Show more. Where a finger + * is the pointer (`pointer-coarse`), 44px tall and a size up, as a conversation's row is there. + */ const BOT_LIST_ACTION_ROW = - "w-full justify-start px-2.5 font-normal text-muted-foreground text-sm"; + "w-full justify-start px-2.5 font-normal text-muted-foreground text-sm pointer-coarse:h-11 pointer-coarse:text-base"; /** * One Bot's latest conversations, under its row: {@link BOT_CONVERSATIONS_PAGE} at a time, read from @@ -184,10 +187,10 @@ function BotConversations({ botId }: { botId: string }) { /** * The gear on the open Bot's row, a square with a hover of its own. Positioned, so it sits above the - * Bot's press, which covers the rest of the row. + * Bot's press, which covers the rest of the row. 44px where a finger is the pointer, as the row is. */ const BOT_ROW_SQUARE = - "relative flex size-9 shrink-0 items-center justify-center rounded-lg bg-transparent text-muted-foreground outline-hidden ring-sidebar-ring transition-colors hover:bg-foreground/5 hover:text-sidebar-foreground focus-visible:ring-2"; + "relative flex size-9 pointer-coarse:size-11 shrink-0 items-center justify-center rounded-lg bg-transparent text-muted-foreground outline-hidden ring-sidebar-ring transition-colors hover:bg-foreground/5 hover:text-sidebar-foreground focus-visible:ring-2"; /** How the gear and a Bot's conversations come and go: the app's entrance (lib/motion.ts). */ const BOT_MOTION = { duration: ENTRANCE_SECONDS, ease: EASE_OUT } as const; @@ -231,14 +234,14 @@ function BotRow({ * space around it included; only the gear sits above it. */}
-
+ {/* + * Where a finger is the pointer, every button in this row (attach, the model, dictate, + * send) is at least 40px, a fingertip's size; with a mouse they keep their own. + */} +
{attachmentsEnabled ? (
-
+ {/* At least 40px under a finger, as in the other layout's row above. */} +
{attachmentsEnabled ? (