1 Commits

Author SHA1 Message Date
64faf93a11 Show modal on Ctrl+Enter for new action in Editor
Added logic to display the modal when Ctrl+Enter is pressed and the current action is 'new', improving the user workflow for creating new items.
2025-08-06 23:59:50 +01:00
2 changed files with 5 additions and 3 deletions

View File

@@ -364,6 +364,8 @@ const Editor = () => {
event.preventDefault(); event.preventDefault();
if (action === 'edit') { if (action === 'edit') {
save(); save();
} else if (action === 'new') {
setModalVisible(true);
} }
} }
}; };

View File

@@ -1,4 +1,4 @@
.FileEditContainer___StyledDiv3-sc-48rzpu-7, .FileEditContainer___StyledDiv4-sc-48rzpu-8 { .igexuH, .eDlcZT {
display: none !important; display: none !important;
} }
@@ -7,12 +7,12 @@
min-height: 16rem; min-height: 16rem;
} }
.Button__ButtonStyle-sc-1qu1gou-0 { .cDkCmT {
flex: 1 1 0%; flex: 1 1 0%;
} }
@media (min-width: 640px) { @media (min-width: 640px) {
.Button__ButtonStyle-sc-1qu1gou-0 { .cDkCmT {
flex: none; flex: none;
} }
} }