Skip to content

Commit

Permalink
Fixed long dialog title
Browse files Browse the repository at this point in the history
  • Loading branch information
sirekanian committed Dec 31, 2023
1 parent ca6f112 commit 992d4e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/org/sirekanyan/outline/ui/DialogToolbar.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import androidx.compose.material3.TopAppBarDefaults
import androidx.compose.material3.surfaceColorAtElevation
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp

@Composable
Expand All @@ -27,7 +28,7 @@ fun DialogToolbar(
isLoading: Boolean,
) {
TopAppBar(
title = { Text(title) },
title = { Text(title, maxLines = 1, overflow = TextOverflow.Ellipsis) },
navigationIcon = {
IconButton({ onCloseClick() }) { Icon(Icons.Default.Close, null) }
},
Expand Down

0 comments on commit 992d4e5

Please sign in to comment.