A bunch of cosmetic changes surrounding "text" files. #3511
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#3511
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "text-formatting"
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?
PR Checklist
Please check all that apply to this PR using "x":
PR Type
What kind of change does this PR introduce?
Fixes
Issue Number: N/A
What is the current behavior?
What is the new behavior?
Other information
Just a few changes for the text viewer (the one which looks similar to Medium)
List of changes:
Change lbry files to do the same ^Other things: (figured i'd put them in the same pr rather than making two new pr's)
index-electron
I'll give an example here:

Before:
After:

There are a couple of concerns I have with the text viewer. Big files, like
lbry://csv
, take ages to load and cause the app to stop responding and lbry.tv just hangs for a while. This isn't due to my changes, just due to how the text viewer works in generalI think I may have messed up the history a bit, not sure what happened there, but other than that, finished the pr.
Thanks @Yamboy1
I'll give this a closer look once we get the release out.
To fix the history/extra changes, you need to rebase against the master branch
git rebase upstream/master
Think i got it!
Great. I'll give this a closer review tomorrow.
A couple comments. The new code theme looks way better!!
There are some files that will still have the
text
mediaType
. Just addscript
to the end without removingtext
@ -106,1 +105,4 @@
max-width: 100%;
min-width: 40em;
width: fit-content;
margin: auto;
I don't think this should change. If it needs to be wider for non-markdown files we can do that, but for the most part, text files should have a static width like
40em
If someone else wants to pick this up, i'm leaving the branch open
Will keep working on this
https://github.com/lbryio/lbry-desktop/pull/3511/commits/c063ee9cfb7428314a50dd53a6b886946068aaaf
@ -106,1 +105,4 @@
max-width: 100%;
min-width: 40em;
width: fit-content;
margin: auto;
https://github.com/lbryio/lbry-desktop/pull/3511/commits/eeaa550a3715a96c47d638b58d269dc492893886
Happy to see you are picking this back up!
Generally the pattern we have been following is this:
Where
main__document-wrapper
is the default style, then add any overrides to the class with--markdown
.Thanks
I'm a bit dissatisified by the dark theme, so I might make a few tweaks there before this gets merged
@Yamboy1 Should I review this or are you still planning to do more work with the dark theme? Happy to review or wait.
Sorry, I've been real busy with school and stuff recently. I'll get onto it
Should be good to merge now 😄
wait
Seems good