Skip to content

Commit

Permalink
Fix sizing of FluentNotification (microsoft#2036)
Browse files Browse the repository at this point in the history
  • Loading branch information
mischreiber authored May 24, 2024
1 parent d2087b4 commit 2d1a4c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/FluentUI/Notification/FluentNotification.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public struct FluentNotification: View, TokenizedControlView {
if state.style.isToast && hasSecondTextRow {
if let attributedTitle = state.attributedTitle {
Text(AttributedString(attributedTitle))
.frame(idealWidth: attributedTitleSize.width)
.fixedSize(horizontal: false, vertical: true)
} else if let title = state.title {
Text(title)
.font(.init(tokenSet[.boldTextFont].uiFont))
Expand All @@ -159,7 +159,7 @@ public struct FluentNotification: View, TokenizedControlView {
var messageLabel: some View {
if let attributedMessage = state.attributedMessage {
Text(AttributedString(attributedMessage))
.frame(idealWidth: attributedMessageSize.width)
.fixedSize(horizontal: false, vertical: true)
} else if let message = state.message {
Text(message)
.font(.init(tokenSet[.regularTextFont].uiFont))
Expand Down

0 comments on commit 2d1a4c0

Please sign in to comment.