feed: ability to close reply form
#23
Merged
offbyn
merged 1 commits from feed-close-reply-form
into master
2 years ago
Loading…
Reference in New Issue
There is no content yet.
Delete Branch 'feed-close-reply-form'
Deleting a branch is permanent. It CANNOT be undone. Continue?
This is an approach to close the reply-to-form automatically when
focus is lost and only if the input is empty. A second way to close the reply-to-form is provided by toggling the reply icon.
Fixes #16
🎉
@ -430,0 +437,4 @@
const reply_to = localStorage.getItem('reply_to');
if (reply_to && writeInput.value === '') {
writeInput.addEventListener('transitionend', (event) => {
if (!reply_to || reply_to === localStorage.getItem('reply_to') && !writeInput.style.height) { // should prob use some class or data-attr instead of relying on height
the trick with css heigh is nice but +1 to using a class or an attr in the future. good as is for now imho.
11fbc7aa7d
into master 2 years agoReviewers
11fbc7aa7d
.Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.