Skip to content

Feature image UI fix#11

Merged
yogeshbhagatcode merged 7 commits into
sherab-devfrom
feature-image-ui-fix
Sep 15, 2025
Merged

Feature image UI fix#11
yogeshbhagatcode merged 7 commits into
sherab-devfrom
feature-image-ui-fix

Conversation

@yogeshbhagatcode

Copy link
Copy Markdown
Collaborator

No description provided.

@yogeshbhagatcode yogeshbhagatcode merged commit 8314d8a into sherab-dev Sep 15, 2025
1 of 4 checks passed
modifier = Modifier
.fillMaxWidth()
.height(90.dp)
.aspectRatio(16f / 9f)

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
modifier = Modifier
.fillMaxWidth()
.height(90.dp)
.aspectRatio(16f / 9f)

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
modifier = Modifier
.fillMaxWidth()
.height(90.dp)
.aspectRatio(16f / 9f)

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
modifier = Modifier
.fillMaxWidth()
.height(90.dp)
.aspectRatio(16f / 9f)

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
}

val columns = if (windowSize.width == WindowType.Compact) {
GridCells.Fixed(2) // phone

Check warning

Code scanning / detekt

Reports multiple space usages Warning

Unnecessary long whitespace
.width(imageWidth)
.height(105.dp)
.fillMaxWidth()
.aspectRatio(16f / 9f) // image scales with width

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
.fillMaxWidth()
.padding(top = 8.dp),
.padding(top = 4.dp)
.height(lineHeight * 3),

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
}

val columns = if (windowSize.width == WindowType.Compact) {
GridCells.Fixed(2) // phone

Check warning

Code scanning / detekt

Reports multiple space usages Warning

Unnecessary long whitespace
val columns = if (windowSize.width == WindowType.Compact) {
GridCells.Fixed(2) // phone
} else {
GridCells.Fixed(3) // tablet / larger

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
val columns = if (windowSize.width == WindowType.Compact) {
GridCells.Fixed(2) // phone
} else {
GridCells.Fixed(3) // tablet / larger

Check warning

Code scanning / detekt

Reports multiple space usages Warning

Unnecessary long whitespace
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