Skip to content

Conversation

@AndyScherzinger
Copy link
Member

...since they can't resize automatically, so the border must be calculated into the radius.

Follow-up to #16227

🖼️ Screenshots

🏚️ Before 🏡 After
before after
  • Tests written, or not not needed

For testing have a file shared with you by a user that got deactivated, so you don't get an avatar from the server. The fallback is a TextDrawable but that doesn't resize, so in case of the avatar group the border needs to be calculated into the radius, else the avatar is (slightly) to big.

Copy link
Collaborator

@alperozturk96 alperozturk96 left a comment

Choose a reason for hiding this comment

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

Thank you :)

...since they can't resize automatically, so the border must be calculated into the radius

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
@AndyScherzinger AndyScherzinger force-pushed the style/noid/textDrawableAvatarBorder branch from 8c544eb to 7c03008 Compare January 13, 2026 16:12
@AndyScherzinger
Copy link
Member Author

Fixed the typo @alperozturk96 - thanks for the review 🙏

@github-actions
Copy link

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

@github-actions
Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/16283.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@github-actions
Copy link

Codacy

SpotBugs

CategoryBaseNew
Bad practice4343
Correctness7474
Dodgy code257257
Experimental11
Internationalization77
Malicious code vulnerability33
Multithreaded correctness3434
Performance4444
Security1818
Total481481

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants