@@ -196,28 +196,33 @@ interface MessageItemProps {
196196 < Show when = { agentMeta ( ) } > { ( meta ) => < span class = "message-agent-meta" > { meta ( ) } </ span > } </ Show >
197197 </ div >
198198 < div class = "message-item-actions" >
199- < Show when = { isUser ( ) && props . onRevert } >
200- < button
201- class = "bg-transparent border border-[var(--border-base)] text-[var(--text-muted)] cursor-pointer px-3 py-0.5 rounded text-xs font-semibold leading-none transition-all duration-200 flex items-center justify-center h-6 hover:bg-[var(--surface-hover)] hover:border-[var(--accent-primary)] hover:text-[var(--accent-primary)] active:scale-95"
202- onClick = { handleRevert }
203- title = "Revert to this message"
204- aria-label = "Revert to this message"
205- >
206- Revert to
207- </ button >
208- </ Show >
209- < Show when = { isUser ( ) && props . onFork } >
210- < button
211- class = "bg-transparent border border-[var(--border-base)] text-[var(--text-muted)] cursor-pointer px-3 py-0.5 rounded text-xs font-semibold leading-none transition-all duration-200 flex items-center justify-center h-6 hover:bg-[var(--surface-hover)] hover:border-[var(--accent-primary)] hover:text-[var(--accent-primary)] active:scale-95"
212- onClick = { ( ) => props . onFork ?.( props . record . id ) }
213- title = "Fork from this message"
214- aria-label = "Fork from this message"
215- >
216- Fork
217- </ button >
199+ < Show when = { isUser ( ) } >
200+ < div class = "message-action-group" >
201+ < Show when = { props . onRevert } >
202+ < button
203+ class = "message-action-button"
204+ onClick = { handleRevert }
205+ title = "Revert to this message"
206+ aria-label = "Revert to this message"
207+ >
208+ Revert
209+ </ button >
210+ </ Show >
211+ < Show when = { props . onFork } >
212+ < button
213+ class = "message-action-button"
214+ onClick = { ( ) => props . onFork ?.( props . record . id ) }
215+ title = "Fork from this message"
216+ aria-label = "Fork from this message"
217+ >
218+ Fork
219+ </ button >
220+ </ Show >
221+ </ div >
218222 </ Show >
219223 < time class = "message-timestamp" dateTime = { timestampIso ( ) } > { timestamp ( ) } </ time >
220224 </ div >
225+
221226 </ header >
222227
223228 < div class = "pt-1 whitespace-pre-wrap break-words leading-[1.1]" >
0 commit comments