-
Couldn't load subscription status.
- Fork 84
Fix open with for note kind #1
#497
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
Conversation
|
https://github.com/ticruz38/coracle/tree/fix/open-with-iconify Check this branch out for an iconify version |
|
The iconify version looks better, but we shouldn't add a dependency. See if you can get something like that into For an illustration of what I mean, certain note kinds should ideally be able to take over the layout of the profile picture etc. to differentiate them from normal notes. Here's how a feed event currently looks: Which obviously is not ideal. Here's an example of how it might look: This is going to be very hairy to accomplish, since it'll require allowing NoteContentX components to call NoteActions internally, or maybe use crazy slots. Then, of course, there are quotes, which are already convoluted to avoid circular dependencies. The simplest solution might be to add logic to Note.svelte, but that's going to be ugly too. I'd really like the solution to be very clean, since there is so much mission-critical stuff going on in these files. |
872e27a to
b0be399
Compare
|
I'm halfway there. Here's what I have done so far:
What's left to do:
|
|
What could be nice trying:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, looks fine so far, but I'm curious to see what it would look like applied to specific note kinds (e.g. feeds)
|
I've gone ahead and bumped this update to 0.6.0 since it's more substantial than I was expecting. |
1bd9f3a to
84ae5c2
Compare
|
This PR primarily refactor the Note.svelte component now renamed FeedItem.svelte Note.svelte now represent just a single note in the feed and is divided into 3 parts: header, content and actions (footer). The "Open With" action now uses Niels' icon. |
|
Looks pretty good, can you fix conflicts? Also, can we get the icon to be a little thicker? The lines are skinnier than font-awesome's, so it looks sort of disabled. |
84ae5c2 to
222b87c
Compare
|
rebased dev and increase open-with stroke width |
src/app/shared/NoteReply.svelte
Outdated
| const openOptions = () => { | ||
| showOptions = true | ||
| } | ||
| const setOpts = e => { | ||
| opts = {...opts, ...e.detail} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you've undone some of my changes, options are no longer working correctly on replies
| {#if showBorder} | ||
| <!-- {#if showBorder} | ||
| <AltColor background class="absolute -top-4 z-none h-5 w-1" /> | ||
| {/if} | ||
| <div | ||
| transition:slide|local | ||
| class="note-reply relative my-2 gap-1" | ||
| bind:this={container} | ||
| on:click|stopPropagation> | ||
| {/if} --> | ||
| <div transition:slide|local class="note-reply relative my-2 gap-1" on:click|stopPropagation> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks unresolved
bfca26c to
0830452
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple small things, when resolving conflicts try to keep the changes made upstream rather than revert them
0830452 to
692e82b
Compare
* hide `open with` for kind 1 and change the icon * refactor note thread * - Rename Thread to FeedItem - Refactor reply state * - fix NoteActions when logged out - add openWith icon * rename NoteKind to Note * fine tune the padding for feed note * increase open-with icon stroke-width * fix rebase * merge fix
* hide `open with` for kind 1 and change the icon * refactor note thread * - Rename Thread to FeedItem - Refactor reply state * - fix NoteActions when logged out - add openWith icon * rename NoteKind to Note * fine tune the padding for feed note * increase open-with icon stroke-width * fix rebase * merge fix
#455
I don't have the context or state of Coracle at the time of this comment but from what I can see in the code, I have some questions: