Skip to content

Commit

Permalink
Merge pull request #820 from Infomaniak/fix-chips
Browse files Browse the repository at this point in the history
fix: Some RecipientChips were too long
  • Loading branch information
Ambrdctr committed Jun 20, 2023
2 parents b602194 + 7d5c037 commit 7c46e1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion Mail/Components/RecipientChip.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ struct RecipientChip: View {
}
} label: { isSelected in
RecipientChipLabelView(recipient: recipient, removeHandler: removeAndFocus, switchFocusHandler: switchFocusHandler)
.fixedSize()
.opacity(isSelected ? 0.8 : 1)
}
}
Expand Down
2 changes: 2 additions & 0 deletions Mail/Components/RecipientChipLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ struct RecipientChipLabelView: UIViewRepresentable {
let label = RecipientChipLabel(recipient: recipient)
label.removeHandler = removeHandler
label.switchFocusHandler = switchFocusHandler
label.setContentHuggingPriority(.defaultHigh, for: .horizontal)
label.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
return label
}

Expand Down

0 comments on commit 7c46e1a

Please sign in to comment.