History: make entire row clickable (pure XAML/MVVM). Add transparent overlay button spanning columns 0–1 bound to CopyHistoryOutputCommand; keep options button intact.

This commit is contained in:
Codex CLI 2025-08-28 00:00:12 -05:00
commit df55d0f1db

View file

@ -125,6 +125,18 @@
<TextBlock Text="Copy"/>
</Button>
<!-- Full-row overlay click target (pure XAML/MVVM).
Sits on top of icon + text (columns 0-1) and triggers copy of output. -->
<Button Grid.ColumnSpan="2"
Background="Transparent"
BorderThickness="0"
Focusable="False"
Cursor="Hand"
x:DataType="vm:MainViewModel"
DataContext="{Binding #Root.DataContext}"
Command="{Binding CopyHistoryOutputCommand}"
CommandParameter="{Binding #HistoryRow.DataContext}" />
<!-- Context menu for right-click / long-press (Android) -->
<Grid.ContextMenu>
<ContextMenu>