mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
Improve message editing UI with inline edit button and mobile responsiveness
This commit is contained in:
1 parent
023e51d98b
commit
b0f67c6328
2 files changed
+16
-15
No files matched your search
@@ -27,6 +27,7 @@ export const EditableUserMessage = memo(function EditableUserMessage({
|
||||
}: EditableUserMessageProps) {
|
||||
const [editedContent, setEditedContent] = useState(content)
|
||||
const textareaRef = useRef<HTMLTextAreaElement>(null)
|
||||
const isMobile = useMobile()
|
||||
const refreshMessage = useRefreshMessage({ opcodeUrl, sessionId, directory })
|
||||
const setIsEditingMessage = useUIState((state) => state.setIsEditingMessage)
|
||||
|
||||
@@ -97,7 +98,7 @@ export const EditableUserMessage = memo(function EditableUserMessage({
|
||||
Press <kbd className="px-1 py-0.5 rounded bg-muted text-xs">Cmd+Enter</kbd> to send, <kbd className="px-1 py-0.5 rounded bg-muted text-xs">Esc</kbd> to cancel
|
||||
</span>
|
||||
|
||||
<div className="flex items-center gap-2">
|
||||
<div className={`flex items-center ${isMobile ? 'gap-3' : 'gap-2'}`}>
|
||||
<button
|
||||
onClick={onCancel}
|
||||
disabled={refreshMessage.isPending}
|
||||
|
||||
Reference in new issue
Block a user