Swap comment servers without going to settings page #7365 #7670
No reviewers
Labels
No labels
accessibility
app-parity
area: creator
area: daemon
area: design
area: devops
area: discovery
area: docs
area: installer
area: internal
area: livestream
area: performance
area: proposal
area: reposts
area: rewards
area: search
area: security
area: subscriptions
area: sync
area: ux
area: viewer
area: wallet
BEAMER
channel
comments
community PR
consider soon
core team
css
dependencies
electron
Epic
feature request
first-timers-only
good first issue
hacktoberfest
help wanted
hub-dependent
icebox
Invalid
level: 0
level: 1
level: 2
level: 3
level: 4
merge when green
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
notifications
odysee
on hold
playlists
priority: blocker
priority: high
priority: low
priority: medium
protocol dependent
recsys
redesign
regression
resilience
sdk dependent
Tom's Wishlist
trending
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-desktop#7670
Loading…
Reference in a new issue
No description provided.
Delete branch "Swap_comment_servers_without_going_to_settings_page_#7365"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes
Issue Number: https://github.com/lbryio/lbry-desktop/issues/7365
What is the current behavior?
What is the new behavior?
Other information
PR Checklist
Toggle...
What kind of change does this PR introduce?
Please check all that apply to this PR using "x":
Good progress. Besides fixing styling, this should be at the top next to the refresh button.
The refresh button reloads all comments. The server selector changes the server for all comments.
Below, the comment field adds one comment.
Also, don't forget to make the selector only show up when the number of servers is > 1.
@ByronEricPerez What do you think if we could have option in app to integrate using multiple comments servers into single feed.
Aka at the same time user could see Odysee comments and also other comments server, or user can decide to limit to selected comments servers or just use single one.
Hi @jessopb how are you, I have already corrected the location, in addition to the fact that it only shows if there are 2 or more commentServer, I just need to add that it shows the comments. And finally some css.
Hi @kodxana , I think the idea is good, it would also be more practical to have the option of being able to show them all in one.
Hi @jessopb , I'm having trouble seeing the comments on all the videos.
The btn moved it to the correct component, it already synchronizes, I need to align it a little more. What do you think?
Although I comment I get an error asking me to restart, but I have that comment in my history.
I also don't see comments on any video. This error started appearing yesterday.
Fixed why it didn't show comments , the error was in index.js
Good progress!
I think we keep refresh button all the way to the right.
And the alignment issue you mentioned.
We should prefer spacing vars instead of px values wherever possible.
Hi @jessopb , Alignment fixed. Create a new class for the element.
What do you think?
Put the refresh button last, and it's a bit too wide, I think.
Ideally, it's only as wide as the longest server name, but also up to a limit.
Hi @jessopb , what do you think?
minim
max
What do you think of what @kodxana said?
@kodxana would you like to test this branch?
I think merging comments sounds really interesting, but sounds like a heavy lift, given how it currently works.
Almost there!
These variables don't quite make sense. It may work now, but if that component changes, we don't want unexpected changes here too.
Was something broken without this -10px here?
Because these two or three items are in a container 'card__title-actions', you can do this on the container:
&:not(:last-child) {
margin-right: var(--spacing-s);
}
then you shouldn't need each class to add a margin on one side.
Also, did you try a
text-overflow: ellipsis;
Hi @jessopb , what do you think?
I limit it to 10 characters, how much do you think is optimal?
What would be the ideal space?
this?
or this?
I think the second one, but it's good to check how other places in the app look so that it's consistent.
@ -360,0 +394,4 @@
Comments.setServerUrl(undefined);
} else {
Comments.setServerUrl(selectedServer);
}
Interesting technique. Try using CSS overflow: and text-overflow: ellipsis
@ -642,3 +658,25 @@
}
}
}
It's good to use variables when the variable is going to be reused multiple places, but this is pretty specific here.
In this code, probably something like: max-width: 12rem - pick some rem number that is reasonable.
Then shrink down to "mobile" size and see if you need a
@media (max-width: $breakpoint-small) { ... }
to adjust.I tested it out and it looks pretty good. Two more things.