[GH-ISSUE #1525] [Issue]: Chat Settings drawer section headers have a too-narrow expand/collapse hit target #771

Closed
opened 2026-10-20 17:33:11 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Xelvanis on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1525

Originally assigned to: @Xelvanis on GitHub.

Summary

Several Chat Settings drawer sections require clicking on the inner button/chevron row to expand or collapse, while the visible header row itself looks clickable. This makes the drawer feel like it only responds when clicking precisely in line with the chevron.

Expected behavior

The full visible section header row should toggle expansion/collapse, except for explicit nested controls such as help tooltips.

Users should not need to target the chevron or a narrow inner row to open settings sections.

Actual behavior

Reported behavior: expanding/contracting drawers requires clicking precisely in line with the chevron.

Current-code audit found the shared settings section renders a hoverable full-width header wrapper, but only the nested button toggles open:

<div className="flex items-center gap-2 px-4 py-3 transition-colors hover:bg-[var(--accent)]/50">
  <button onClick={() => setOpen((o) => !o)} className="flex min-w-0 flex-1 ...">
    ...
  </button>
  {help && <HelpTooltip ... />}
</div>

The AdvancedParametersSection has the same pattern. Some nested schedule sections are already implemented as full-width buttons, so the drawer has inconsistent click targets.

Steps to reproduce

  1. Open a chat in Roleplay or Conversation.
  2. Open the Chat Settings drawer.
  3. Try expanding/collapsing settings sections by clicking across the visible header row.
  4. Observe that parts of the header row appear interactive but do not toggle unless the click lands on the nested toggle button/chevron line.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: origin/refactor at e79891d9
  • Run mode: code audit against refactor UI path; original report came from Roleplay use
  • OS + version: not OS-specific
  • Node + pnpm versions: not captured
  • Rust version, if relevant: not captured
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: not relevant

Logs, screenshots, or video

Code paths inspected:

  • src/features/modes/shared/chat-ui/components/settings/ChatSettingsSections.tsx
  • src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx

Likely affected components:

  • ChatSettingsSection
  • AdvancedParametersSection

Regression notes

Unknown. Reported during Roleplay audit on the refactor branch.

Additional context

A fix should preserve the help tooltip as an independent control and avoid nested interactive elements. One likely direction is making the visible header row itself the button and placing the help affordance outside or stopping propagation deliberately.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Xelvanis on GitHub (May 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1525 Originally assigned to: @Xelvanis on GitHub. ## Summary Several Chat Settings drawer sections require clicking on the inner button/chevron row to expand or collapse, while the visible header row itself looks clickable. This makes the drawer feel like it only responds when clicking precisely in line with the chevron. ## Expected behavior The full visible section header row should toggle expansion/collapse, except for explicit nested controls such as help tooltips. Users should not need to target the chevron or a narrow inner row to open settings sections. ## Actual behavior Reported behavior: expanding/contracting drawers requires clicking precisely in line with the chevron. Current-code audit found the shared settings section renders a hoverable full-width header wrapper, but only the nested `button` toggles `open`: ```tsx <div className="flex items-center gap-2 px-4 py-3 transition-colors hover:bg-[var(--accent)]/50"> <button onClick={() => setOpen((o) => !o)} className="flex min-w-0 flex-1 ..."> ... </button> {help && <HelpTooltip ... />} </div> ``` The `AdvancedParametersSection` has the same pattern. Some nested schedule sections are already implemented as full-width buttons, so the drawer has inconsistent click targets. ## Steps to reproduce 1. Open a chat in Roleplay or Conversation. 2. Open the Chat Settings drawer. 3. Try expanding/collapsing settings sections by clicking across the visible header row. 4. Observe that parts of the header row appear interactive but do not toggle unless the click lands on the nested toggle button/chevron line. ## Impact area - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [x] Chat mode - [x] Roleplay mode - [ ] Game mode - [x] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: `origin/refactor` at `e79891d9` - Run mode: code audit against refactor UI path; original report came from Roleplay use - OS + version: not OS-specific - Node + pnpm versions: not captured - Rust version, if relevant: not captured - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: not relevant ## Logs, screenshots, or video Code paths inspected: - `src/features/modes/shared/chat-ui/components/settings/ChatSettingsSections.tsx` - `src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx` Likely affected components: - `ChatSettingsSection` - `AdvancedParametersSection` ## Regression notes Unknown. Reported during Roleplay audit on the refactor branch. ## Additional context A fix should preserve the help tooltip as an independent control and avoid nested interactive elements. One likely direction is making the visible header row itself the button and placing the help affordance outside or stopping propagation deliberately. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:33:11 +07:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#771
No description provided.