Skip to content

Commit

Permalink
ui/fix: Text fields being taller than expected when the field title w…
Browse files Browse the repository at this point in the history
…as too long

Signed-off-by: Gabriel Fontán <[email protected]>
  • Loading branch information
BobbyESP committed May 4, 2024
1 parent 0687d55 commit 0eb4a79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.bobbyesp.metadator.presentation.pages.mediaplayer

import android.content.Context
import android.net.Uri
import android.util.Log
import androidx.annotation.OptIn
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
Expand Down Expand Up @@ -121,8 +120,6 @@ class MediaplayerViewModel @Inject constructor(
copiedList.remove(firstSong)
copiedList.add(0, firstSong)

Log.d("MediaplayerViewModel", "playRandomQueue: copiedList: $copiedList")

loadQueueSongs(copiedList)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextOverflow
import com.bobbyesp.ui.R

@Composable
Expand All @@ -45,7 +46,7 @@ fun PreConfiguredOutlinedTextField(
modifier = modifier,
value = text ?: "",
onValueChange = setText,
label = { Text(text = label) },
label = { Text(text = label, maxLines = 1, overflow = TextOverflow.Ellipsis) },
enabled = enabled,
readOnly = readOnly,
keyboardOptions = keyboardOptions,
Expand Down

0 comments on commit 0eb4a79

Please sign in to comment.