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: description on readonly boards #1674

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ornanovitch
Copy link

@Ornanovitch Ornanovitch commented Sep 14, 2024

After many attempts, I was finally able to make it! Tested with a prod server, with and without readonly boards, everything works as expected :)

Before After
desc-before desc-after

But I must admit I am not fully confident with the code, I never tried to play with java code before, so I don't even understand completely why those peace of code were missing...

I'd love to have your feedbacks @stefan-niedermann

binding.descriptionEditor.setEnabled(false);
binding.descriptionEditorWrapper.setVisibility(GONE);
binding.descriptionViewer.setEnabled(false);
binding.descriptionViewer.setEnabled(true);
Copy link
Author

Choose a reason for hiding this comment

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

This change is not necessary to view the description, but it seems mandatory to interact with it (links, selection...)

@@ -123,7 +123,7 @@
android:textIsSelectable="true"
android:textSize="@dimen/font_size_description"
android:translationY="1dp"
android:visibility="gone" />
android:visibility="visible" />
Copy link
Author

Choose a reason for hiding this comment

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

nothing works without this

@stefan-niedermann
Copy link
Owner

Thank you for the contribution! I'm currently on vacation and will try to review the changes after Sept 25th.

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.

card's description of shared boards invisible with read only permission
2 participants