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

Small UI fix in room member profile hearder #4700

Merged
merged 5 commits into from
Dec 16, 2021

Conversation

Claire1817
Copy link
Contributor

In the room member profile header, when the name is too long the name and the shield are not completely visible.

Screen after the fix:
Screenshot_1639393847

@github-actions
Copy link

github-actions bot commented Dec 13, 2021

Unit Test Results

  66 files  ±0    66 suites  ±0   58s ⏱️ +2s
135 tests ±0  135 ✔️ ±0  0 💤 ±0  0 ±0 
418 runs  ±0  418 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit a2c7175. ± Comparison against base commit 5ea7f3c.

♻️ This comment has been updated with latest results.

@bmarty
Copy link
Member

bmarty commented Dec 13, 2021

Thanks.
Fixes #4275
Can you add a file for the changelog? (see https://github.com/vector-im/element-android/blob/develop/CONTRIBUTING.md#changelog)
Can you add a signoff please? (see https://matrix-org.github.io/synapse/latest/development/contributing_guide.html#sign-off)
EDIT No need for a sign-off for you.

@bmarty
Copy link
Member

bmarty commented Dec 13, 2021

The layout is not correct, see in AS preview:

Existing code After your change
image image

The shield should be next to the text.

Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

The layout is not broken anymore, thanks.
I tried to do better without having to add a nested LinearLayout, but without success.
Please see my latest remarks.

app:layout_constraintTop_toBottomOf="@id/memberProfileAvatarView"
tools:text="@sample/users.json/data/displayName" />
android:gravity="center">
Copy link
Member

Choose a reason for hiding this comment

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

Please format the file (and rearrange attributes)

android:layout_marginEnd="8dp"
android:gravity="center"
android:textStyle="bold"
tools:text=" dezdezdzedez dezjdioezdiozeiodzendez" />
Copy link
Member

Choose a reason for hiding this comment

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

Maybe restore the previous text.

Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

LGTM, thanks. Will squash the commits.

@bmarty bmarty merged commit ca58a04 into develop Dec 16, 2021
@bmarty bmarty deleted the cgizard/fix_ui_member_profile_name branch December 16, 2021 20:10
onurays pushed a commit that referenced this pull request Dec 27, 2021
* develop: (87 commits)
  Update versions to 1.3.13
  Release: prepare CHANGES
  adding changelog entry
  removing android version bypass for using text futures - the emoji span changes affect all android versions
  Update versions to 1.3.12
  Release: prepare CHANGES
  removing trailing space
  extracting the emoji processing to an interface so that we can override the behaviour in the unit test
  adding comment to explain SpannableStringBuilder usage
  adding changelog entry
  using the safe emoji processor to avoid the timeline failing when processing the content and the emoji library hasn't initialised yet
  Update changelog.d/4743.bugfix
  Small UI fix in room member profile hearder (#4700)
  Add changelog
  adding changelog entry
  adding missing binding options emote content - fixes android 12+ crash when certain emojis are used within the emote content
  Fix crash ImmutableModelException
  Update Gradle Wrapper from 7.3.1 to 7.3.2.
  Call banner: center text vertically
  adding changelog entry
  ...
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.

2 participants