DocumentScreen: fix padding of the bottom bar
This commit is contained in:
@@ -36,7 +36,6 @@ import androidx.compose.material.icons.filled.PictureAsPdf
|
||||
import androidx.compose.material.icons.filled.RestartAlt
|
||||
import androidx.compose.material.icons.outlined.Delete
|
||||
import androidx.compose.material3.AlertDialog
|
||||
import androidx.compose.material3.BottomAppBar
|
||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Text
|
||||
@@ -192,9 +191,6 @@ private fun DocumentPreview(
|
||||
private fun BottomBar(
|
||||
showPdfDialog: MutableState<Boolean>,
|
||||
showNewDocDialog: MutableState<Boolean>,
|
||||
) {
|
||||
BottomAppBar (
|
||||
containerColor = MaterialTheme.colorScheme.surfaceContainerHigh
|
||||
) {
|
||||
Row(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
@@ -215,7 +211,6 @@ private fun BottomBar(
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
fun NewDocumentDialog(onConfirm: () -> Unit, showDialog: MutableState<Boolean>) {
|
||||
|
||||
@@ -125,7 +125,7 @@ fun DocumentBar(
|
||||
} else {
|
||||
Row(
|
||||
modifier = Modifier
|
||||
.padding(horizontal = 16.dp, vertical = 1.dp)
|
||||
.padding(horizontal = 8.dp)
|
||||
.fillMaxWidth(),
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
horizontalArrangement = Arrangement.SpaceBetween
|
||||
|
||||
Reference in New Issue
Block a user