Blocks: tune edit

This commit is contained in:
Enrico Ros
2024-08-03 19:00:55 -07:00
parent b18a3f0fd9
commit 94278068c2
3 changed files with 4 additions and 3 deletions
@@ -274,7 +274,7 @@ export function DocAttachmentFragmentEditor(props: {
setEditedText={props.setEditedText}
onSubmit={handleEditApply}
onEscapePressed={handleToggleEdit}
endDecorator={editedText ? 'Shift+Enter to save · Escape to cancel' : 'No changes. · Escape to cancel'}
endDecorator={editedText ? 'Shift+Enter to save · Escape to cancel.' : 'No changes · Escape to cancel.'}
/>
) : (
// Document viewer, including the collapse/expand state inside
@@ -105,7 +105,7 @@ export function ContentFragmentsWithInlineEdit(props: {
setEditedText={props.setEditedText}
onSubmit={props.onEditsApply}
onEscapePressed={props.onEditsCancel}
endDecorator='Shift+Enter to save · Ctrl+Shift+Enter to restart · Escape to cancel'
endDecorator='Shift+Enter to save · Ctrl+Shift+Enter to restart · Escape to cancel.'
/>
);
}
@@ -13,7 +13,8 @@ const textAreaSlotPropsEnter = {
endDecorator: {
sx: {
fontSize: 'xs',
pl: 0.25,
pl: 0.5,
mt: 1.5,
},
},
};