Fix some lints

This commit is contained in:
Stypox 2025-08-27 19:50:27 +02:00
parent 4c604985e1
commit 0347fd9bf0
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23

View File

@ -132,7 +132,7 @@ fun LongPressMenu(
val minButtonWidth = 86.dp
val buttonHeight = 86.dp
val headerWidthInButtons = 5 // the header is 5 times as wide as the buttons
val buttonsPerRow = (maxWidth / minButtonWidth).toInt()
val buttonsPerRow = (this.maxWidth / minButtonWidth).toInt()
// the channel icon goes in the menu header, so do not show a button for it
val actions = longPressActions.toMutableList()
@ -476,8 +476,8 @@ fun LongPressMenuButton(
icon: ImageVector,
text: String,
onClick: () -> Unit,
enabled: Boolean = true,
modifier: Modifier = Modifier,
enabled: Boolean = true,
) {
// TODO possibly make it so that when you long-press on the button, the label appears on-screen
// as a small popup, so in case the label text is cut off the users can still read it in full