Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixing markdown line height issue.#500

Merged
twizmwazin merged 6 commits into
mainfrom
fix_markdown_line_height
Jun 11, 2023
Merged

Fixing markdown line height issue.#500
twizmwazin merged 6 commits into
mainfrom
fix_markdown_line_height

Conversation

@dessalines

Copy link
Copy Markdown
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
Comment thread app/src/main/java/com/jerboa/Utils.kt Outdated
}
}

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

Copy link
Copy Markdown
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
Copy Markdown
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