Skip to content

Commit

Permalink
Padding adjustments.
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksey-saenko committed Nov 18, 2023
1 parent fd1e196 commit b61e674
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ internal fun TrackLazyColumn(
LazyColumn(
modifier = modifier,
state = lazyListState,
contentPadding = PaddingValues(top = 6.dp, start = 10.dp, end = 10.dp, bottom = 10.dp),
verticalArrangement = Arrangement.spacedBy(8.dp),
contentPadding = PaddingValues(top = 6.dp, start = 12.dp, end = 12.dp, bottom = 12.dp),
verticalArrangement = Arrangement.spacedBy(10.dp),
horizontalAlignment = Alignment.CenterHorizontally
) {
items(count = trackList.size, key = { trackList[it].mbId }) { index ->
Expand Down Expand Up @@ -111,7 +111,7 @@ internal fun LazyListTrackItem(
indication = if (multiselectEnabled) null else LocalIndication.current,
interactionSource = remember { MutableInteractionSource() }
)
.height(120.dp)
.height(112.dp)
.fillMaxWidth()
) {
val placeholder = forwardingPainter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.alpha
import androidx.compose.ui.draw.clip
import androidx.compose.ui.draw.shadow
import androidx.compose.ui.graphics.ColorFilter
import androidx.compose.ui.graphics.Shape
import androidx.compose.ui.layout.ContentScale
Expand Down Expand Up @@ -129,7 +128,7 @@ internal fun LazyGridTrackItem(
contentDescription = stringResource(StringsR.string.artwork),
contentScale = ContentScale.Crop,
modifier = Modifier
.shadow(elevation = 1.dp, shape = shape)
// .shadow(elevation = 1.dp, shape = shape)
.background(
color = MaterialTheme.colorScheme.surfaceColorAtElevation(1.dp),
shape = shape
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ internal fun TrackSearchItem(
)
.clip(shape)
.clickable { onTrackClick(track.mbId) }
.height(120.dp)
.height(112.dp)
.fillMaxWidth()
) {
val placeholder = forwardingPainter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,10 @@ internal fun QueueScreen(
EmptyQueueMessage(modifier = Modifier.fillMaxSize())
} else {
LazyColumn(
contentPadding = PaddingValues(16.dp),
verticalArrangement = Arrangement.spacedBy(16.dp),
contentPadding = PaddingValues(
start = 16.dp, end = 16.dp, top = 8.dp, bottom = 16.dp
),
verticalArrangement = Arrangement.spacedBy(12.dp),
modifier = Modifier.nestedScroll(topBarBehaviour.nestedScrollConnection)
) {
items(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ internal fun ShareBottomSheet(
}
Spacer(modifier = Modifier.height(16.dp))
Divider(modifier = Modifier.fillMaxWidth())
Spacer(modifier = Modifier.height(16.dp))
Spacer(modifier = Modifier.height(8.dp))
Row(
horizontalArrangement = Arrangement.spacedBy(16.dp, Alignment.End),
verticalAlignment = Alignment.CenterVertically,
Expand Down

0 comments on commit b61e674

Please sign in to comment.