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

Fixing markdown line height issue. #500

Merged
merged 6 commits into from
Jun 11, 2023
Merged

Conversation

dessalines
Copy link
Member

The markdown textview wasn't using the correct units, and it was also missing line height.

@dessalines dessalines requested a review from twizmwazin as a code owner June 10, 2023 16:44
@@ -893,3 +894,7 @@ fun Modifier.onAutofill(vararg autofillType: AutofillType, onFill: (String) -> U
}
}
}

fun spToPx(sp: TextUnit, context: Context): Int {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should use a longer name than spToPx to make it more clear what the function does.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Or you could add a KDoc comment

for example

/**
 * Converts a scaleable pixel (sp) to an actual pixel (px)
 */
 fun spToPx(sp: TextUnit, context: Context): Int {

@dessalines dessalines requested a review from twizmwazin June 11, 2023 01:25
@twizmwazin twizmwazin enabled auto-merge (squash) June 11, 2023 01:52
@twizmwazin twizmwazin merged commit 54eeb0a into main Jun 11, 2023
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.

3 participants