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

Comment action bar improvements #453

Merged
merged 11 commits into from
Jun 8, 2023

Conversation

twizmwazin
Copy link
Contributor

@twizmwazin twizmwazin commented Jun 7, 2023

This PR currently is built on top of #432. It adds an option to show action bars by default for comments. Currently this is built into database migration 11, but if there is a release before this is merged I will make it a different migration version. It also adds the ability to long-press on a comment to toggle the action bar state.

I can rebase this to work without #432, but the current markdown renderer does not expose an onLongClick option, so the long press would only work in the top and bottom bars.

Addresses #319, #418

This allows us to remove the markdown scaling applied to the editor which forced the text content to also be increased.

Removed the compose-markdown package and created our own wrapper around the markwon libraries with a custom resolver for images.

LemmyNet#373
@twizmwazin twizmwazin requested a review from dessalines as a code owner June 7, 2023 20:50
@twizmwazin twizmwazin force-pushed the comment-action-bar-improvements branch from 91cc8d1 to 2ae96ae Compare June 8, 2023 05:29
@dessalines
Copy link
Member

It also adds the ability to long-press on a comment to toggle the action bar state.

I'll make an issue to add a user guide to the readme, and link it from somewhere within the app.

Copy link
Member

@dessalines dessalines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great, thank you!

@@ -518,6 +519,7 @@ fun UserTabs(
account = account,
moderators = listOf(),
isCollapsedByParent = false,
showActionBarByDefault = appSettingsViewModel.appSettings.value?.showCommentActionBarByDefault ?: true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dessalines dessalines enabled auto-merge (squash) June 8, 2023 18:39
@dessalines dessalines merged commit 7171690 into LemmyNet:main Jun 8, 2023
@TrollBlox
Copy link

Could we add an option to long press to collapse and tap to expand the action bar?

@dessalines
Copy link
Member

No because tap collapses / uncollapses child comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants