diff --git a/public/app.js b/public/app.js index beac46a..891765c 100644 --- a/public/app.js +++ b/public/app.js @@ -534,6 +534,15 @@ function addNoteEventListeners() { const noteContainer = event.target.closest("#note"); const noteContent = noteContainer.querySelector(".textNote"); + // Разворачиваем заметку при редактировании + noteContent.classList.remove("collapsed"); + + // Скрываем кнопку "Показать полностью" если она есть + const showMoreBtn = noteContainer.querySelector(".show-more-btn"); + if (showMoreBtn) { + showMoreBtn.style.display = "none"; + } + // Создаем контейнер для markdown кнопок const markdownButtonsContainer = document.createElement("div"); markdownButtonsContainer.classList.add("markdown-buttons");