-
Notifications
You must be signed in to change notification settings - Fork 95
[iOS & Android] Enable borderRadius in all mention types #720
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
[iOS & Android] Enable borderRadius in all mention types #720
Conversation
…s to all mentions
apple/MarkdownTextLayoutFragment.mm
Outdated
| CGFloat marginLeft = _markdownUtils.markdownStyle.blockquoteMarginLeft; | ||
| CGFloat borderWidth = _markdownUtils.markdownStyle.blockquoteBorderWidth; | ||
| CGFloat paddingLeft = _markdownUtils.markdownStyle.blockquotePaddingLeft; | ||
| CGFloat shift = marginLeft + borderWidth + paddingLeft; | ||
|
|
||
| fragmentTextBounds.origin.x -= (paddingLeft + borderWidth) + shift * ([_depth unsignedIntValue] - 1); | ||
| fragmentTextBounds.size.width = borderWidth + shift * ([_depth unsignedIntValue] - 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the blockquote logic is now duplicated, can we somehow dedupe it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was already :/
I could create a helper function to get the shift to make it look better but the logic would stay unchanged
I think we need it to be that way because boundingRect is also used in renderingSurfaceBounds
…e` to a separate file
android/src/main/java/com/expensify/livemarkdown/spans/MarkdownBackgroundSpan.java
Outdated
Show resolved
Hide resolved
|
I fixed last known iOS issue in this commit - 28b6a13 |
jmusial
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dunno if those are connected to this PR, or just existing bugs. In all cases, it's just on mobile devices
- android, switching to single line breaks highlights :(
Screen.Recording.2025-08-22.at.13.04.20.mov
- android, Cursor not visible when within
codeblockormention
Screen.Recording.2025-08-22.at.13.08.38.mov
|
Na ios dzieją się rzeczy niestworzone :( Ale to też single - line to jest Simulator.Screen.Recording.-.iPhone.15.Pro.-.2025-08-22.at.14.34.03.mp4 |
We can try to fix it in a separate PR but I think we need to consult with the design team. I'll leave it as an open idea because it's not in the scope of this PR Thanks for noticing! |
|
@parasharrajat kind bump :) |
| mentionHere: { | ||
| color: 'green', | ||
| backgroundColor: 'lime', | ||
| borderRadius: 5, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be 4px as per design system.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're using different values here on purpose. For instance, we also have background color lime and foreground color green. That's because they need to be set on the E/App side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sense. I didn't notice that it is a different repo. 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@parasharrajat so are we ready for the ✅? 👀
|
@parasharrajat can we get a final ✅? All comments have been answered! |
…ratorComponentView
|
BUG: Android: Cursor shows behind the background. 02.12.2025_19.26.11_REC.mp4 |
|
How do I build iOS build locally? I installed the latest commit for this package on NewDot repo, and it worked for Android. But for iOS, the app is downloading the app from the remote cache. |
|
We know about the issue and already reported it. It was put on hold at the time but we could revisit this idea in another issue/thread. |
@parasharrajat I'd probably remove the GITHUB_TOKEN entry from my |
|
Now the builds are coming from S3. |
|
Ok, so another quick one - I'd add a dummy log to some |
|
iOS looks good. |
|
@war-in So we are not targeting this #720 (comment) here in this PR. Do we have approval for this from internal team? @puneetlath What do you say? |
@parasharrajat which |
Both are the same. We will have to fix that. The question is where. This Pr or another issue. So we need to clarify that first before moving forward. |
|
Sorry, the Slack link above doesn't work for me. Is that a bug this PR introduces? Or it already exists? |
@parasharrajat No, it's not. I downloaded the prod version from google play and this is how it behaves right now (see not-rounded corners) Screen_Recording_20251204_111617_Expensify.mp4cc @puneetlath (you can enter the slack link by copying it and pasting in a slack conversation e.g. self dm) |
|
Ah, I see. Thanks for correcting me. Then we are fine with this PR. |
parasharrajat
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎀 👀 🎀 C+ reviewed




Details
This PR adds support for
borderRadiusprop in mentions styles on iOS & AndroidRelated Issues
Expensify/App#19299
Manual Tests
iOS & Android:
Linked PRs