Skip to content

Commit 7234559

Browse files
authored
Merge pull request #784 from microsoft/dhruvMishra/appBarIconTruncateFix
[V2 AppBarLayout] Avoid truncating post title icons when title is large
2 parents 4c36c89 + b42d82f commit 7234559

File tree

1 file changed

+2
-1
lines changed
  • fluentui_topappbars/src/main/java/com/microsoft/fluentui/tokenized

1 file changed

+2
-1
lines changed

fluentui_topappbars/src/main/java/com/microsoft/fluentui/tokenized/AppBar.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ fun AppBar(
203203
)
204204
),
205205
maxLines = 1,
206-
overflow = TextOverflow.Ellipsis
206+
overflow = TextOverflow.Ellipsis,
207+
modifier = Modifier.weight(1f, fill = false)
207208
)
208209
if (postTitleIcon.isIconAvailable() && appBarSize == AppBarSize.Small)
209210
Icon(

0 commit comments

Comments
 (0)