Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix (app): Fix list elements jumping out of position when dragged #300

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

sameoldlab
Copy link
Contributor

For reasons I don't understand dragging elements from svelte-sortable-list seems to break when it's parent has a backdrop-filter.

Copy link

github-actions bot commented Feb 3, 2025

All contributors have signed the CLC ✍️ ✅
Posted by the CLC Assistant Lite bot.

@sameoldlab
Copy link
Contributor Author

I have read the CLC Document and I hereby sign the CLC

github-actions bot added a commit that referenced this pull request Feb 3, 2025
github-merge-queue bot pushed a commit that referenced this pull request Feb 4, 2025
Partially fixes .#295, allowing Page links to be edited and reordered on
the Profile edit page.


https://github.com/user-attachments/assets/8b244070-66b8-4734-98f9-8032ba7bbb7c

There's some callouts in the code comments I'm adding here for
visibility:
- Sorting here is also affected by the bug the #300 fixes, but works
correctly if that is also merged.
- rodrigodagostino/svelte-sortable-list#11. This was fixed in
svelte-sortable-list v0.10.11. I didn't want to edit package.json
without explaining why first.
- The last empty element can get dragged into the list (and then
erased). There isn't a way to lock it while leaving it editable. Opened
an issue for it here (rodrigodagostino/svelte-sortable-list#15)
- Tab order for sortable covers the individual inputs. Not sure how to
best to accessibly deal with this.
- Copied and edited some $effects from SocialLinksEditor.svelte to keep
an empty input on the list. Might be worth abstracting and merging if
the same thing is needed in more places.
- Links get auto removed when the url is empty without checking the
label. I don't know which would make more sense / how likely someone is
to delete an entire url when they plan to reuse it's label.
@zicklag zicklag added this pull request to the merge queue Feb 4, 2025
Merged via the queue into muni-town:main with commit 5f8dfbd Feb 4, 2025
1 check passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 4, 2025
@sameoldlab sameoldlab deleted the fix/svelte-sortable-jumping branch February 4, 2025 19:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants